menu

Xamarin.iOS

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

    Show / Hide Table of Contents

    Class ShapeAnnotation

    Specifies and allows editing the appearance of the paricular shape annotation.

    Inheritance
    System.Object
    ShapeAnnotation
    Implements
    IAnnotation
    Namespace: Syncfusion.SfPdfViewer.iOS
    Assembly: Syncfusion.SfPdfViewer.iOS.dll
    Syntax
    public class ShapeAnnotation : Object, IAnnotation

    Constructors

    ShapeAnnotation(ShapeAnnotationType, Int32, CGRect)

    Declaration
    public ShapeAnnotation(ShapeAnnotationType type, int pageNumber, CGRect bounds)
    Parameters
    Type Name Description
    ShapeAnnotationType type
    System.Int32 pageNumber
    CoreGraphics.CGRect bounds

    ShapeAnnotation(ShapeAnnotationType, Int32, Int32[])

    Declaration
    public ShapeAnnotation(ShapeAnnotationType type, int pageNumber, int[] points)
    Parameters
    Type Name Description
    ShapeAnnotationType type
    System.Int32 pageNumber
    System.Int32[] points

    Properties

    Bounds

    Gets or sets the bounds of the annotation within the PDF page.

    Declaration
    public CGRect Bounds { get; set; }
    Property Value
    Type
    CoreGraphics.CGRect

    LinePoints

    Gets or sets the array of coordinates that define the starting and ending points of line and arrow annotations. The value of this property should be empty for annotations other than line and arrow.

    Declaration
    public int[] LinePoints { get; set; }
    Property Value
    Type
    System.Int32[]

    Name

    Gets or sets the name of the annotation.

    Declaration
    public string Name { get; set; }
    Property Value
    Type
    System.String

    PageNumber

    Gets or sets the page index in which the annotation is added.

    Declaration
    public int PageNumber { get; }
    Property Value
    Type
    System.Int32

    PolygonPoints

    Gets or sets the array of coordinates that represent the vertices of the polygon.

    Declaration
    public int[] PolygonPoints { get; set; }
    Property Value
    Type
    System.Int32[]
    Remarks

    The value of this property should be empty for annotations other than polygon and cloud.

    Settings

    Gets or sets the ShapeAnnotationSettings associated with the shape annotation.

    Declaration
    public ShapeAnnotationSettings Settings { get; set; }
    Property Value
    Type Description
    ShapeAnnotationSettings

    The shape allows the user to customize the appearance of the shape annotation.

    ShapeAnnotationType

    Declaration
    public ShapeAnnotationType ShapeAnnotationType { get; }
    Property Value
    Type
    ShapeAnnotationType

    Implements

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