Class TextAnnotation
Defines a Sticky-Note style PDF annotation. AddTextAnnotation(TextAnnotation, Int32, Int32, Int32, Int32, Int32)
Inheritance
Namespace: IronPdf.Annotations
Assembly: IronPdf.dll
Syntax
public class TextAnnotation : Object
Constructors
TextAnnotation()
Declaration
public TextAnnotation()
Properties
Color
The color of the annotation's 'Sticky Note'
Declaration
public Nullable<Color> Color { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Drawing.Color> |
Contents
The contents of the 'sticky note' annotation
Declaration
public string Contents { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Hidden
Hides the annotation from users
Declaration
public bool Hidden { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Icon
An icon to visually represent the 'sticky note' annotation
Declaration
public TextAnnotation.AnnotationIcon Icon { get; set; }
Property Value
Type | Description |
---|---|
TextAnnotation.AnnotationIcon |
Opacity
The opacity of the annotation (valid values are from 0.0 to 1.0)
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
OpenByDefault
Sets the annotation to be opened and readable by default, without user interaction
Declaration
public bool OpenByDefault { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Printable
Allows the annotation to be printed when users print the PDF
Declaration
public bool Printable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ReadOnly
Allows the annotation to be printed when users print the PDF
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Rotateable
Allows the annotation to be rotated. E.g. when the containing page os rotated
Declaration
public bool Rotateable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Subject
The sub title of the annotation as displayed in the header of the 'sticky note'
Declaration
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Title
The main title of the annotation as displayed in the header of the 'sticky note'
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ToString()
Returns a System.String that represents this annotation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |