Enum PdfHighlightMode
- Namespace
- Syncfusion.Pdf.Interactive
- Assembly
- Syncfusion.Pdf.Portable.dll
Specifies the highlight mode for a field.
public enum PdfHighlightMode
Fields
Invert = 1
Invert the contents of the field rectangle.
NoHighlighting = 0
No highlighting.
Outline = 2
Invert the field's border.
Push = 3
Pushed highlighting.
Examples
// Create a new PDf document
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Create the signature field
PdfSignatureField sign = new PdfSignatureField(page, "sign1");
sign.Bounds = new RectangleF(100, 420, 100, 50);
// Set the high light mode for a signature field
sign.HighlightMode = PdfHighlightMode.Push;
document.Form.Fields.Add(sign);
document.Save("Form.pdf");
document.Close(true);
' Create a new PDf document
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Create the signature field
Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1")
sign.Bounds = New RectangleF(100, 420, 100, 50)
' Set the high light mode for a signature field
sign.HighlightMode = PdfHighlightMode.Push
document.Form.Fields.Add(sign)
document.Save("Form.pdf")
document.Close(True)
Remarks
Default value is Invert.