menu

Xamarin.Android

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

    Show / Hide Table of Contents

    Class AnnotationCollection

    Represents a collection of annotation for diagram elements.

    Inheritance
    System.Object
    AnnotationCollection
    Namespace: Syncfusion.SfDiagram.Android
    Assembly: Syncfusion.SfDiagram.Android.dll
    Syntax
    public class AnnotationCollection : Object

    Constructors

    AnnotationCollection(Object)

    Initializes a new instance of the AnnotationCollection class.

    Declaration
    public AnnotationCollection(object parent)
    Parameters
    Type Name Description
    System.Object parent

    parent object.

    Properties

    Count

    Gets the number of annotations in this collection.

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

    Integer value, represents the annotation count.

    Item[Int32]

    Gets the annotation at the specified index.

    Declaration
    public Annotation this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index

    Index of the annotation in the collection.

    Property Value
    Type Description
    Annotation

    returns annotation.

    Methods

    Add(Annotation)

    Add the specified annotation to this annotation collection.

    Declaration
    public Annotation Add(Annotation annotation)
    Parameters
    Type Name Description
    Annotation annotation

    Annotation to be added into the collection.

    Returns
    Type Description
    Annotation

    returns annotation value.

    Clear()

    Clear this annotation collection.

    Declaration
    public void Clear()

    GetEnumerator()

    Gets the IEnumerator collection of Annotation.

    Declaration
    public IEnumerator<Annotation> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<Annotation>

    enumerator value.

    IndexOf(Annotation)

    Returns the index value of annotation.

    Declaration
    public int IndexOf(Annotation annotation)
    Parameters
    Type Name Description
    Annotation annotation

    Annotation to be searched.

    Returns
    Type Description
    System.Int32

    returns index value.

    Insert(Int32, Annotation)

    Insert the annotation at specified index.

    Declaration
    public void Insert(int index, Annotation annotation)
    Parameters
    Type Name Description
    System.Int32 index

    Index where the annotation to be inserted.

    Annotation annotation

    Annotation to be inserted.

    Remove(Annotation)

    Remove the specified annotation from this collection.

    Declaration
    public void Remove(Annotation annotation)
    Parameters
    Type Name Description
    Annotation annotation

    Annotation to be removed.

    RemoveAt(Int32)

    Removes the annotation at the specified index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Index from where the annotation to be removed.

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