Class Line

Line annotations are used to draw straight lines on a page.

Implements
Namespace: PSPDFKit.Sdk.Models.Annotation.Shape
Assembly: Sdk.dll
Syntax
public sealed class Line : ShapeAnnotationBase, IAnnotation

Properties

| Edit this page View Source

EndPoint

The PointF coordinates of the line ending point.

Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy), NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(PointFJsonConverter))]
public PointF? EndPoint { get; set; }
Property Value
Type Description
PointF?
Remarks

If no end point is provided, the annotation will not be visible.

| Edit this page View Source

LineCaps

Start and End line caps for the line. Each line cap can have one of these values: LineCap If the fillColor field is provided, its value is used as fill color for the line cap interior.

Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy), NullValueHandling = NullValueHandling.Ignore)]
public LineCaps LineCaps { get; set; }
Property Value
Type Description
LineCaps
| Edit this page View Source

StartPoint

The PointF coordinates of the line starting point.

Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy), NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(PointFJsonConverter))]
public PointF? StartPoint { get; set; }
Property Value
Type Description
PointF?
Remarks

If no start point is provided, the annotation will not be visible.

Implements

IAnnotation