alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class TreeNodePrimitivesCollection

    Represents a collection that stores TreeNodePrimitive objects.

    Inheritance
    System.Object
    TreeNodePrimitivesCollection
    Implements
    System.ICloneable
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class TreeNodePrimitivesCollection : CollectionBase, ICloneable

    Constructors

    TreeNodePrimitivesCollection()

    Initializes a new instance of TreeNodePrimitivesCollection class.

    Declaration
    public TreeNodePrimitivesCollection()

    Properties

    Item[Int32]

    Gets or sets the TreeNodePrimitive based on the index.

    Declaration
    public TreeNodePrimitive this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type
    TreeNodePrimitive

    Methods

    Add(TreeNodePrimitive)

    Adds primitive to collection.

    Declaration
    public void Add(TreeNodePrimitive primitive)
    Parameters
    Type Name Description
    TreeNodePrimitive primitive

    AddRange(TreeNodePrimitive[])

    Adds primitives to collection.

    Declaration
    public void AddRange(TreeNodePrimitive[] arrPrimitives)
    Parameters
    Type Name Description
    TreeNodePrimitive[] arrPrimitives

    Clone()

    Creates a shallow copy of the .

    Declaration
    public virtual object Clone()
    Returns
    Type Description
    System.Object

    A shallow copy of the .

    OnClear()

    Declaration
    protected override void OnClear()

    OnCollectionChanged(CollectionChangeEventArgs)

    Declaration
    protected virtual void OnCollectionChanged(CollectionChangeEventArgs args)
    Parameters
    Type Name Description
    System.ComponentModel.CollectionChangeEventArgs args

    OnRemove(Int32, Object)

    Declaration
    protected override void OnRemove(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value

    Remove(TreeNodePrimitive)

    Removes primitive from collection.

    Declaration
    public void Remove(TreeNodePrimitive primitive)
    Parameters
    Type Name Description
    TreeNodePrimitive primitive

    Events

    CollectionChanged

    Occurs when the primitive collection is changed in a TreeNode.

    Declaration
    public event CollectionChangeEventHandler CollectionChanged
    Event Type
    Type
    System.ComponentModel.CollectionChangeEventHandler

    Implements

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