Enum PdfBorderEffectStyle
Specifies the available styles for a border.
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfBorderEffectStyle
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
Name | Description |
---|---|
Cloudy | A cloudy rectangle surrounding the annotation. |
Solid | A solid rectangle surrounding the annotation. |