TextAnnotationIconName Enum
Lists text annotation icon names.
Declaration
public enum TextAnnotationIconName extends Enum<TextAnnotationIconName> implements IIntEnum
Members
| Name | Description |
|---|---|
CHECK
|
Specifies a check mark text annotation icon. |
CIRCLE
|
Specifies a circle text annotation icon. |
COMMENT
|
Specifies a comment text annotation icon. |
CROSS
|
Specifies a cross text annotation icon. |
CROSS_HAIRS
|
Specifies a cross hairs text annotation icon. |
DEFAULT
|
Specifies the default text annotation icon. |
HELP
|
Specifies a help text annotation icon. |
INSERT
|
Specifies an insert text annotation icon. |
KEY
|
Specifies a key text annotation icon. |
NEW_PARAGRAPH
|
Specifies a new paragraph text annotation icon. |
NOTE
|
Specifies a note text annotation icon. |
PARAGRAPH
|
Specifies a paragraph text annotation icon. |
RIGHT_ARROW
|
Specifies a right arrow text annotation icon. |
RIGHT_POINTER
|
Specifies a right pointer text annotation icon. |
STAR
|
Specifies a star text annotation icon. |
UP_ARROW
|
Specifies an up arrow text annotation icon. |
UP_LEFT_ARROW
|
Specifies an up-left arrow text annotation icon. |
fromValue(int value)
|
Returns the text annotation icon name with the specified integer value. |
getName()
|
Returns the text annotation icon name item name. |
getValue()
|
Returns the text annotation icon name integer value. |
toString()
|
Returns the string representation of the text annotation icon name. |
valueOf(String name)
|
Returns the text annotation icon name enum constant with the specified name. |
values()
|
Returns the available text annotation icon name constants. |
Remarks
Use the setIconName(TextAnnotationIconName value) method to specify the text annotation icon name.
The following code snippet creates a sticky note and adds it to the first page:

// Get the first page in the document.
Page page = pdfDocument.getPages().getFirst();
TextAnnotation annotation = new TextAnnotation(new RectangleF(50, 430, 24, 36));
annotation.setTitle("Brian Zetc");
annotation.setContent("Please review this paragraph.");
annotation.setColor(PdfColor.getLightGray());
page.getAnnotations().add(annotation);