menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AnnotationCollection - Xamarin.Forms 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.XForms
    Assembly: Syncfusion.SfDiagram.XForms.dll
    Syntax
    public class AnnotationCollection : ObservableCollection<Annotation>

    Constructors

    AnnotationCollection()

    Declaration
    public AnnotationCollection()

    Properties

    Count

    Gets count this instance.

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

    Gets the annotationcollection count.

    Item[Int32]

    Gets the Annotation at the specified index.

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

    The index.

    Property Value
    Type
    Annotation

    Methods

    Add(Annotation)

    Add the specified annotation into this collection.

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

    Annotation to be added.

    add_CollectionChanged(AnnotationCollection.NotifyCollectionChangedEventHandler)

    Declaration
    public void add_CollectionChanged(AnnotationCollection.NotifyCollectionChangedEventHandler value)
    Parameters
    Type Name Description
    AnnotationCollection.NotifyCollectionChangedEventHandler value

    Clear()

    Clear all the annotations from this collection.

    Declaration
    public void Clear()

    Contains(Annotation)

    Contains.

    Declaration
    public bool Contains(Annotation annotation)
    Parameters
    Type Name Description
    Annotation annotation

    annotation.

    Returns
    Type Description
    System.Boolean

    Gets Contains.

    GetEnumerator()

    Gets the IEnumerator collection of Annotation.

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

    IEnumerator collection of Annotation.

    IndexOf(Annotation)

    Returns the index of the specified annotation in the collection.

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

    Annotation to be searched.

    Returns
    Type Description
    System.Int32

    Index of the specified annotation in the collection.

    Insert(Int32, Annotation)

    Insert the specified annotation at the 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 the collection.

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

    Annotation to be removed.

    remove_CollectionChanged(AnnotationCollection.NotifyCollectionChangedEventHandler)

    Declaration
    public void remove_CollectionChanged(AnnotationCollection.NotifyCollectionChangedEventHandler value)
    Parameters
    Type Name Description
    AnnotationCollection.NotifyCollectionChangedEventHandler value

    RemoveAt(Int32)

    Remove the Annotation at the specified index from the collection.

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

    Index of the annotation to be removed.

    Events

    CollectionChanged

    CollectionChanged.

    Declaration
    public event AnnotationCollection.NotifyCollectionChangedEventHandler CollectionChanged
    Event Type
    Type
    AnnotationCollection.NotifyCollectionChangedEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved