Enum PdfPopupIcon
- Namespace
- Syncfusion.Pdf.Interactive
- Assembly
- Syncfusion.Pdf.Portable.dll
Specifies the enumeration of popup annotation icons.
public enum PdfPopupIcon
Fields
Check = 7Indicates Check popup annotation.
Circle = 8Indicates Circle popup annotation.
Comment = 1Indicates comment popup annotation.
Cross = 9Indicates Cross popup annotation.
CrossHairs = 10Indicates CrossHairs popup annotation.
Help = 2Indicates help popup annotation.
Insert = 3Indicates insert popup annotation.
Key = 4Indicates key popup annotation.
NewParagraph = 5Indicates new paragraph popup annotation.
Note = 0Indicates note popup annotation.
Paragraph = 6Indicates paragraph popup annotation.
RightArrow = 11Indicates RightArrow popup annotation.
RightPointer = 12Indicates RightPointer popup annotation.
Star = 13Indicates Star popup annotation.
UpArrow = 14Indicates UpArrow popup annotation.
UpLeftArrow = 15Indicates UpLeftArrow popup annotation.
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page.
PdfPage page = document.Pages.Add();
//Create a new rectangle
RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30);
//Create a new popup annotation.
PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation");
//Set the popup icon.
popupAnnotation.Icon = PdfPopupIcon.NewParagraph;
//Add this annotation to a new page.
page.Annotations.Add(popupAnnotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page.
Dim page As PdfPage = document.Pages.Add()
'Create a new rectangle
Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30)
'Create a new popup annotation.
Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation")
'Set the popup icon.
popupAnnotation.Icon = PdfPopupIcon.NewParagraph
'Add this annotation to a new page.
page.Annotations.Add(popupAnnotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)