Skip to content

PdfVisualAnnotationToolTip.Contents Property

Gets or sets the contents of annotation tooltip.

C#
public string Contents { get; set; }

Property Value

String

The contents of the annotation tooltip.

Remarks

Use the Title and Contents properties to specify the text that is displayed in annotation tooltips. The text can contain annotation property names enclosed in curly brackets that are replaced with actual values when the tooltip is displayed.
For example, the default value of the Contents property is "{Contents}", which means that the contents of the annotation is displayed as the body of the tooltip. You can use other property names to display different information about the annotation, such as {Author}, {Subject}, {Contents}, {ID}, {CreationDate}, {ModificationDate}, etc.
If the property name is not recognized, it is replaced with an empty string. For example, if you set the Contents property to "{UnknownProperty}", the body of the tooltip will be empty because {UnknownProperty} is not a recognized annotation property name.