PDFVisualTextAnnotation¶
Namespace: O2S.Components.PDF4NET.View.Annotations
Defines a text annotation that is displayed in a control.
Inheritance Object → PDFVisualAnnotation → PDFVisualMarkupAnnotation → PDFVisualTextAnnotation
Constructors¶
PDFVisualTextAnnotation(PDFTextAnnotation)¶
Initializes a new PDFVisualTextAnnotation object.
Parameters
annotation PDFTextAnnotation
The underlying PDF annotation.
Properties¶
Annotation¶
Gets the underlying PDF annotation.
Property Value
PDFAnnotation
A PDF annotation.
DisplayRectangle¶
Gets or sets the visual rectangle of this annotation.
Property Value
PDFDisplayRectangle
A that represents the position and size of the annotation on the page.
Remarks
The visual rectangle is relative to the top left corner of the page.
Icon¶
Gets or sets the text annotation icon name.
Property Value
String
The name of the text annotation icon.
Exceptions
ArgumentNullException
Thrown when the property value is null or empty.
Remarks
The icon name defines the annotation's visual appearance. The library supports a predefined set of names defined in the class for which standard appearance is created. When a custom name is used, a custom appearance must also be provided.
InteriorColor¶
Gets or sets the annotation interior color.
Property Value
PDFColor
A specifying the interior color with which to fill the annotation's icon interior.
Exceptions
ArgumentOutOfRangeException
Thrown when the property is set to a color other than Gray, RGB or CMYK.
Location¶
Gets or sets the annotation location on the page.
Property Value
PDFPoint
The position of annotation's top left corner on the parent page.
Exceptions
ArgumentNullException
Thrown when the property is set to null.
NormalAppearance¶
Gets or sets the annotation normal appearance.
Property Value
PDFAnnotationAppearance
A specifying how the annotation is presented visually on the page.
Opacity¶
Gets or sets the annotation opacity.
Property Value
Double
A value in the range [0, 1] that represents the constant opacity value to be used in painting the annotation.
OutlineColor¶
Gets or sets the annotation outline color.
Property Value
PDFColor
A specifying the outline color with which to stroke the annotation's icon outlines.
Exceptions
ArgumentOutOfRangeException
Thrown when the property is set to a color other than Gray, RGB or CMYK.
Tag¶
Gets or sets an object that contains user-defined data associated with the annotation.
Property Value
Remarks
This property can be used to store any custom information relevant to the annotation at
runtime. The value is not used by the annotation itself and is intended solely for application-specific
data.
NOTE: The value of this property is not persisted in the PDF file.
VisualPage¶
Gets the page that owns the anotation.
Property Value
PDFVisualPage
The PDFVisualPage that owns the annotation.