Class PdfHighlightMode
Specifies the highlight mode for a field.
Inheritance
System.Object
PdfHighlightMode
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class PdfHighlightMode : Enum
Remarks
Default value is Invert.
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)
Fields
Invert
Invert the contents of the field rectangle.
Declaration
public const PdfHighlightMode Invert
Field Value
Type |
---|
PdfHighlightMode |
NoHighlighting
No highlighting.
Declaration
public const PdfHighlightMode NoHighlighting
Field Value
Type |
---|
PdfHighlightMode |
Outline
Invert the field's border.
Declaration
public const PdfHighlightMode Outline
Field Value
Type |
---|
PdfHighlightMode |
Push
Pushed highlighting.
Declaration
public const PdfHighlightMode Push
Field Value
Type |
---|
PdfHighlightMode |