menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfBorderEffectStyle - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfBorderEffectStyle

    Specifies the available styles for a border.

    Inheritance
    System.Object
    PdfBorderEffectStyle
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.UWP.dll
    Syntax
    public sealed class PdfBorderEffectStyle : Enum
    Remarks

    Default value is Solid.

    Examples
    //Create a new PDF document.
    PdfDocument document = new PdfDocument();
    //Create a new page .
    PdfPage page = document.Pages.Add();
    //To specify the line end points.
    int[] points = new int[] { 80, 420, 150, 420 ,40 ,800 };
    //Create a polygon  annotation.
    PdfPolygonAnnotation polygonannotation = new PdfPolygonAnnotation(points, "Polygon Annotation");
    //Create pdf  border Effect.
    PdfBorderEffect borderEffect = new PdfBorderEffect();
    borderEffect.Style = PdfBorderEffectStyle.Cloudy;
    borderEffect.Intensity = 1;
    polygonannotation.BorderEffect = borderEffect;
    //Add this annotation to a new page.
    page.Annotations.Add(polygonannotation);
    //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()
    'To specify the line end points.
    Dim points() As Integer = { 80, 420, 150, 420, 40, 800 }
    'Create a new Polygon annotation.
    Dim polygonannotation As New PdfPolygonAnnotation(points, "Polygon Annotation")
    'Create pdf  border Effect.
    Dim borderEffect As New PdfBorderEffect()
    borderEffect.Style = PdfBorderEffectStyle.Cloudy
    borderEffect.Intensity=1;
    polygonannotation.BorderEffect = borderEffect
    'Add this annotation to a new page.
    page.Annotations.Add(polygonannotation)
    'Save the document to disk.
    document.Save("Output.pdf")
    'close the document.
    document.Close(True)

    Fields

    Cloudy

    A cloudy rectangle surrounding the annotation.

    Declaration
    public const PdfBorderEffectStyle Cloudy
    Field Value
    Type
    PdfBorderEffectStyle

    Solid

    A solid rectangle surrounding the annotation.

    Declaration
    public const PdfBorderEffectStyle Solid
    Field Value
    Type
    PdfBorderEffectStyle

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    PdfDocument
    PdfPage
    PdfPolygonAnnotation
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved