menu

Xamarin.iOS

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLineCaptionType - Xamarin.iOS API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLineCaptionType

    Specifies the Line Caption Type is to be used in the Line annotation.

    Inheritance
    System.Object
    PdfLineCaptionType
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class PdfLineCaptionType : Enum
    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 lineAnnotation = new PdfLineAnnotation(points, "Line Annoation");
    //Set the line caption type.
    lineAnnotation.CaptionType = PdfLineCaptionType.Inline;
    //Add this annotation to a new page.
    page.Annotations.Add(lineAnnotation);
    //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 lineAnnotation As New PdfLineAnnotation(points, "Line Annoation")
    'Set the line caption type.
    lineAnnotation.CaptionType = PdfLineCaptionType.Inline
    'Add this annotation to a new page.
    page.Annotations.Add(lineAnnotation)
    'Save the  document to disk.
    document.Save("Output.pdf")
    'close the document
    document.Close(True)

    Fields

    Inline

    Indicates Inline as annotation caption positioning

    Declaration
    public const PdfLineCaptionType Inline
    Field Value
    Type
    PdfLineCaptionType

    Top

    Indicates Top as annotation caption positioning

    Declaration
    public const PdfLineCaptionType Top
    Field Value
    Type
    PdfLineCaptionType
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved