Class
LineAnnotation

Draws a straight line between two points, optionally with arrowhead endings and configurable thickness/color.

Definition

Properties

End

Gets or sets the end point in page user units.

Declaration

cs-api-definition
public Point End { get; set; }

Property Value

Point

The coordinates where the line ends.

Remarks

Coordinates are in document space with origin at the top-left. X increases to the right and Y increases downward.

EndLineEndingType

Gets or sets the decoration drawn at the end point (e.g., None, OpenArrow).

Declaration

cs-api-definition
public LineEndingType EndLineEndingType { get; set; }

Property Value

LineEndingType

The line end ending type.

Start

Gets or sets the start point in page user units.

Declaration

cs-api-definition
public Point Start { get; set; }

Property Value

Point

The coordinates where the line begins.

Remarks

Coordinates are in document space with origin at the top-left. X increases to the right and Y increases downward.

StartLineEndingType

Gets or sets the decoration drawn at the start point (e.g., None, OpenArrow).

Declaration

cs-api-definition
public LineEndingType StartLineEndingType { get; set; }

Property Value

LineEndingType

The line start ending type.

Type

Returns the line annotation type.

Declaration

cs-api-definition
public override AnnotationType Type { get; }

Property Value

AnnotationType

The annotation type for lines.

Overrides Annotation.Type

Methods

RecalculateContent()

Recalculates the annotation AnnotationContentSource content based on annotations text properties and dynamic appearance characteristics if there are such.

Declaration

cs-api-definition
public override void RecalculateContent()

Overrides ContentAnnotationBase.RecalculateContent()