ASP.NET MVC

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfLineEndingStyle - ASP.NETMVC API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum PdfLineEndingStyle

    Specifies the line ending style to be used in the Line annotation.

    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfLineEndingStyle
    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 };
    //Create a new line annotation.
    PdfLineAnnotation linkAnnotation = new PdfLineAnnotation(points, "Line Annotation");
    linkannotation.EndLineStyle = PdfLineEndingStyle.Diamond;
    //Add this annotation to a new page.
    page.Annotations.Add(linkAnnotation);
    //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 }
    'Create a new line annotation.
    Dim linkAnnotation As New PdfLineAnnotation(points, "Line Annotation")
    linkannotation.EndLineStyle = PdfLineEndingStyle.Diamond
    'Add this annotation to a new page.
    page.Annotations.Add(linkAnnotation)
    'Save the  document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)

    Fields

    Name Description
    Butt

    Indicates Butt

    Circle

    Indicates Circle

    ClosedArrow

    Indicates ClosedArrow

    Diamond

    Indicates Diamond

    None

    Indicates None

    OpenArrow

    Indicates OpenArrow

    RClosedArrow

    Indicates RClosedArrow

    ROpenArrow

    Indicates ROpenArrow

    Slash

    Indicates Slash

    Square

    Indicates Square

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