Class PdfLineJoin
Specifies the corner style of the shapes.
Inheritance
System.Object
PdfLineJoin
Namespace: Syncfusion.Pdf.Graphics
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class PdfLineJoin : Enum
Examples
//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page to the document.
PdfPage page = doc.Pages.Add();
//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;
//Create new PDF pen instance.
PdfPen pen = new PdfPen(Color.Red);
//Set custom dash style.
pen.DashStyle = PdfDashStyle.Custom;
//Set line jion.
pen.LineJoin = PdfLineJoin.Bevel;
// Create a custom dash pattern.
pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f };
//Draw rectangle.
graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100));
//Save the document.
doc.Save("Output.pdf");
//Close the document.
doc.Close(true);
'Create a new PDF document.
Dim doc As New PdfDocument()
'Add a page to the document.
Dim page As PdfPage = doc.Pages.Add()
'Create PDF graphics for the page
Dim graphics As PdfGraphics = page.Graphics
'Create new PDF pen instance.
Dim pen As New PdfPen(Color.Red)
'Set custom dash style.
pen.DashStyle = PdfDashStyle.Custom
'Set line jion.
pen.LineJoin = PdfLineJoin.Bevel
'Create a custom dash pattern.
pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F}
'Draw rectangle.
graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100))
'Save the document.
doc.Save("Output.pdf")
'Close the document.
doc.Close(True)
Fields
Bevel
The two segments are finished with caps and the resulting notch beyond the ends of the segments is filled with a triangle.
Declaration
public const PdfLineJoin Bevel
Field Value
Type |
---|
PdfLineJoin |
Miter
The outer edges for the two segments are extended until they meet at an angle.
Declaration
public const PdfLineJoin Miter
Field Value
Type |
---|
PdfLineJoin |
Round
An arc of a circle with a diameter equal to the line width is drawn around the point where the two segments meet, connecting the outer edges for the two segments.
Declaration
public const PdfLineJoin Round
Field Value
Type |
---|
PdfLineJoin |