[]
Represents a free text annotation that displays text directly on a page. Unlike an ordinary text annotation (see TextAnnotation), a free text annotation has no open or closed state. Instead of being displayed in a pop-up window, the text is always visible.
public class FreeTextAnnotation : MarkupAnnotation, IOwnedObject, IContentItem, IPdfDict
Initializes a new instance of the FreeTextAnnotation class.
public FreeTextAnnotation()
Gets or sets an array of 2 or 3 System.Drawing.PointF structures specifying a callout line attached to the free text annotation. 3 points represent the starting coordinates, the knee point, and the ending coordinates of the line. 2 points represent the starting and ending coordinates of the line. The coordinates are in default user space relative to the upper left corner of the page's media box, with the Y (vertical) coordinates increasing from top to bottom.
public IReadOnlyList<PointF> CalloutLine { get; set; }
Gets or sets the annotation color.
public Color Color { get; set; }
Gets the DefaultAppearance object that specifies the visual properties (font, font size etc.) used to format the content of the annotation.
public DefaultAppearance DefaultAppearance { get; }
Gets or sets the justification to be used in displaying the annotation’s text. See PDF specification for details.
public VariableTextJustification Justification { get; set; }
Gets or sets the line dash pattern. Null means a solid line.
public float[] LineDashPattern { get; set; }
Gets or sets the style of end callout line.
public LineEndingStyle LineEndStyle { get; set; }
Gets or sets the line width in points.
public float LineWidth { get; set; }
public float Opacity { get; set; }
Gets or sets an array of 2 or 3 System.Drawing.PointF structures specifying a callout line attached to the free text annotation. 3 points represent the starting coordinates, the knee point, and the ending coordinates of the line. 2 points represent the starting and ending coordinates of the line. The coordinates are specified in PDF user space. 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.
public IReadOnlyList<PointF> PdfCalloutLine { get; set; }
Gets or sets the default style string. See PDF specification for details.
public string StyleString { get; set; }
Gets or sets the Offsets structure that defines the numerical differences between two rectangles: the Rect and an inner rectangle contained within that rectangle. The inner rectangle is where the FreeTextAnnotation’s text should be displayed.
Note that if this rectangle is not specified then Rect is used as the text rectangle.
public Offsets? TextOffsets { get; set; }