[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.LineAnnotation

LineAnnotation Class

Represents a line annotation, that displays a single straight line on a page. When opened, it displays a pop-up window containing the text of the associated note.

Namespace: GrapeCity.Documents.Pdf.Annotations
Assembly: DS.Documents.Pdf.dll
Syntax
public class LineAnnotation : MarkupAnnotation, IOwnedObject, IContentItem, IPdfDict
Public Class LineAnnotation
    Inherits MarkupAnnotation
    Implements IOwnedObject, IContentItem, IPdfDict

Constructors

Name Description
LineAnnotation()

Initializes a new instance of the LineAnnotation class.

Properties

Name Description
End

Gets or sets the end point of the line. The coordinates of the point are relative to the upper left corner of the page's media box, with the Y (vertical) coordinates increasing from top to bottom.

Note that if the annotation is associated with more than one page, the media box of the first of those pages is used to calculate the rectangle's location.

HorizontalTextOffset

Gets or sets the horizontal offset along the annotation line from its midpoint, with a positive value indicating offset to the right and a negative value indicating offset to the left.

LeaderLineOffset

Gets or sets a non-negative number representing the length of the leader line offset, which is the amount of empty space between the endpoints of the annotation and the beginning of the leader lines.

LeaderLinesExtension

Gets or sets a non-negative number representing the length of leader line extensions that extend from the line proper 180 degrees from the leader lines.

LeaderLinesLength

Gets or sets the length of leader lines in default user space that extend from each endpoint of the line perpendicular to the line itself. A positive value means that the leader lines appear in the direction that is clockwise when traversing the line from its starting point to its ending point. A negative value indicates the opposite direction.

LineDashPattern

Gets or sets the line dash pattern. Null means a solid line.

LineEndStyle

Gets or sets the style of line end.

LineEndingsFillColor

Gets or sets the interior color with which to fill the annotation’s line endings.

LineStartStyle

Gets or sets the style of line start.

LineWidth

Gets or sets the line width in points.

PdfEnd

Gets or sets the end point of the line annotation in PDF user space coordinates. The coordinates of the point are in PDF user space coordinates. The positive X axis extends horizontally to the right, and the positive Y axis extends vertically upward, with the origin usually in the lower left corner of the page.

PdfStart

Gets or sets the start point of the line annotation in PDF user space coordinates. The positive X axis extends horizontally to the right, and the positive Y axis extends vertically upward, with the origin usually in the lower left corner of the page.

Start

Gets or sets the start point of the line annotation. The coordinates of the point are relative to the upper left corner of the page's media box, with the Y (vertical) coordinates increasing from top to bottom.

Note that if the annotation is associated with more than one page, the media box of the first of those pages is used to calculate the rectangle's location.

TextPosition

Gets or sets the annotation's text positioning.

VerticalTextOffset

Gets or sets the vertical offset perpendicular to the annotation line, with a positive value indicating a shift up and a negative value indicating a shift down.

Extension Methods