PdfTextAnnotation Class

A text annotation (ISO 32000-2, 12.5.6.4): a note, shown as an icon that opens its text.

public sealed class PdfTextAnnotation : PdfMarkupAnnotation
Inheritance
PdfMarkupAnnotation PdfTextAnnotation

Properties

NameDescription
IconGets or sets the name of the icon of the note (/Name): Comment, Key, Note, Help, NewParagraph, Paragraph, Insert, or a name a viewer knows. The default is Note.
IsOpenGets or sets a value indicating whether the note is initially open (/Open).
StateGets or sets the state of the note (/State, 12.5.6.3), such as Accepted, Rejected, Completed or Marked: a note with a state is a reply that records the state of the annotation it replies to.
StateModelGets or sets the model of PdfTextAnnotation.State (/StateModel): Marked or Review.

Gets or sets the name of the icon of the note (/Name): Comment, Key, Note, Help, NewParagraph, Paragraph, Insert, or a name a viewer knows. The default is Note.

public string Icon { get; set; }

Property value

string

Exceptions

ArgumentException
The value is empty.

Gets or sets a value indicating whether the note is initially open (/Open).

public bool IsOpen { get; set; }

Property value

bool

Gets or sets the state of the note (/State, 12.5.6.3), such as Accepted, Rejected, Completed or Marked: a note with a state is a reply that records the state of the annotation it replies to.

public string? State { get; set; }

Property value

string?

Gets or sets the model of PdfTextAnnotation.State (/StateModel): Marked or Review.

public string? StateModel { get; set; }

Property value

string?