[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.TextAnnotation

Class TextAnnotation

Namespace
GrapeCity.Documents.Pdf.Annotations
Assembly
GcDocs.Pdf.dll

Represents a sticky note attached to a point in a PDF document.

public class TextAnnotation : MarkupAnnotation, IOwnedObject, IContentItem, IPdfDict
Inheritance
object
TextAnnotation
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Constructors

TextAnnotation()

Initializes a new instance of the TextAnnotation class.

public TextAnnotation()

Properties

Icon

Gets or sets the type of the icon used to display the annotation.

public TextAnnotationIcon Icon { get; set; }

Property Value

TextAnnotationIcon

Open

Gets or sets a flag specifying whether the annotation should initially be displayed open.

public bool Open { get; set; }

Property Value

bool

State

Gets or sets the state to which the original annotation shall be set.

The following describes the predefined combinations of State and StateModel, and their meanings:

    See PDF specification for more details.
    public string State { get; set; }

    Property Value

    string

    StateModel

    Gets or sets the state model corresponding to State.

    See State and PDF specification for details.

    public string StateModel { get; set; }

    Property Value

    string

    Methods

    GetIconSize(TextAnnotationIcon, float, float)

    Returns the size of the specified TextAnnotationIcon.

    public static SizeF GetIconSize(TextAnnotationIcon icon, float dpiX = 72, float dpiY = 72)

    Parameters

    icon TextAnnotationIcon

    The TextAnnotationIcon value specifies the icon.

    dpiX float

    The horizontal resolution used to calculate bounds of the icon.

    dpiY float

    The vertical resolution used to calculate bounds of the icon.

    Returns

    System.Drawing.SizeF