menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class NodeCollection

    Represents a collection of node.

    Inheritance
    System.Object
    NodeCollection
    Namespace: Syncfusion.SfDiagram.XForms
    Assembly: Syncfusion.SfDiagram.XForms.dll
    Syntax
    public class NodeCollection : ObservableCollection<Node>

    Constructors

    NodeCollection()

    Initializes a new instance of the NodeCollection class.

    Declaration
    public NodeCollection()

    Properties

    Count

    Gets count this instance.

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

    Gets the nodecollection count.

    Item[Int32]

    Gets the Node at the specified index.

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

    The index.

    Property Value
    Type
    Node

    Methods

    Add(Node)

    Add the specified node into this collection.

    Declaration
    public void Add(Node node)
    Parameters
    Type Name Description
    Node node

    Node to be added.

    add_CollectionChanged(NodeCollection.NotifyCollectionChangedEventHandler)

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

    Clear()

    Clear all the nodes from this collection.

    Declaration
    public void Clear()

    Contains(Node)

    Contains.

    Declaration
    public bool Contains(Node node)
    Parameters
    Type Name Description
    Node node

    node.

    Returns
    Type Description
    System.Boolean

    Gets Contains.

    GetEnumerator()

    Gets the IEnumerator collection of Node.

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

    Gets the IEnumerator collection.

    IndexOf(Node)

    Returns the index of the specified node in the collection.

    Declaration
    public int IndexOf(Node node)
    Parameters
    Type Name Description
    Node node

    Node to be searched.

    Returns
    Type Description
    System.Int32

    Returns the index of the specified node.

    Insert(Int32, Node)

    Insert the specified node at the specified index.

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

    Index where the node to be inserted.

    Node node

    Node to be inserted.

    Remove(Node)

    Remove the specified node from the collection.

    Declaration
    public void Remove(Node node)
    Parameters
    Type Name Description
    Node node

    Node to be removed.

    remove_CollectionChanged(NodeCollection.NotifyCollectionChangedEventHandler)

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

    RemoveAt(Int32)

    Remove the node at the specified index from the collection.

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

    Index of the node to be removed.

    Events

    CollectionChanged

    CollectionChanged.

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