PdfMarkupAnnotation Class

A markup annotation (ISO 32000-2, 12.5.6.2): a note, a text markup, a free text, a stamp, a shape, an ink drawing... the annotations a reviewer adds to a document. Create them with the Add* methods of PdfAnnotationCollection.

public sealed class PdfMarkupAnnotation : PdfAnnotation
Inheritance
PdfAnnotation PdfMarkupAnnotation

Properties

NameDescription
AuthorGets or sets the author of the annotation (/T), which viewers show in the title bar of its pop-up window.
CreationDateGets or sets the date the annotation was created (/CreationDate).
OpacityGets or sets the opacity of the annotation (/CA), from 0 to 1. The default is 1. The appearances the library creates are drawn with it.
SubjectGets or sets the subject of the annotation (/Subj).

Gets or sets the author of the annotation (/T), which viewers show in the title bar of its pop-up window.

public string? Author { get; set; }

Property value

string?

Gets or sets the date the annotation was created (/CreationDate).

public DateTimeOffset? CreationDate { get; set; }

Property value

DateTimeOffset?

Gets or sets the opacity of the annotation (/CA), from 0 to 1. The default is 1. The appearances the library creates are drawn with it.

public double Opacity { get; set; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not between 0 and 1.

Gets or sets the subject of the annotation (/Subj).

public string? Subject { get; set; }

Property value

string?