File Formats

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfHighlightMode

    Show / Hide Table of Contents

    Enum PdfHighlightMode

    Specifies the highlight mode for a field.

    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfHighlightMode
    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

    Name Description
    Invert

    Invert the contents of the field rectangle.

    NoHighlighting

    No highlighting.

    Outline

    Invert the field's border.

    Push

    Pushed highlighting.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved