Class PdfBorderEffectStyle
Specifies the available styles for a border.
Inheritance
System.Object
PdfBorderEffectStyle
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.NET.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 |