Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ItemCollectionClass Class

An instance of the ItemCollectionClass class represents an item collection.

An item collection is a group of sibling items. A SftTree/NET control contains an item collection, which is accessible using the control's SftTree.ItemCollection property.

Each item in turn can contain its own item collection (dependents), which is accessible through the ItemClass.Children property.

Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Inheritance

Syntax

public class ItemCollectionClass : System.Collections.CollectionBase;
Public Class ItemCollectionClass
    Inherits System.Collections.CollectionBase

Constructors

This class cannot be instantiated.

Properties

PublicCapacityDefines the number of items that the ItemCollectionClass instance can contain.
PublicInherited from System.Collections.CollectionBaseCountGets the number of elements contained in the CollectionBase instance. This property cannot be overridden.
PublicFirstReturns the first item in the item collection.
PublicItemReturns the specified item or cell.
PublicLastReturns the last item in the item collection.
PublicTotalItemsReturns the total number of items in this item collection, including any immediate and indirect dependents.
PublicVisibleItemsReturns the total number of items in this item collection that are visible, including any immediate and indirect dependents that are visible.
ProtectedInherited from System.Collections.CollectionBaseInnerListGets an ArrayList containing the list of elements in the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseListGets an IList containing the list of elements in the CollectionBase instance.

Methods

PublicAddAdds a new item at the end of the item collection.
PublicClearRemoves all items from the item collection.
PublicCollapseExpands all items in the item collection so their dependents become visible.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
PublicExpandCollapses all items in the item collection so their dependents are hidden.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.Collections.CollectionBaseGetEnumeratorReturns an enumerator that iterates through the CollectionBase instance.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicInsertFirstInserts a new item at the start of the item collection.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
ProtectedInherited from System.Collections.CollectionBaseOnClearPerforms additional custom processes when clearing the contents of the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseOnClearCompletePerforms additional custom processes after clearing the contents of the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseOnInsertPerforms additional custom processes before inserting a new element into the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseOnInsertCompletePerforms additional custom processes after inserting a new element into the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseOnRemovePerforms additional custom processes when removing an element from the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseOnRemoveCompletePerforms additional custom processes after removing an element from the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseOnSetPerforms additional custom processes before setting a value in the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseOnSetCompletePerforms additional custom processes after setting a value in the CollectionBase instance.
ProtectedInherited from System.Collections.CollectionBaseOnValidatePerforms additional custom processes when validating a value.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.Collections.CollectionBaseRemoveAtRemoves the element at the specified index of the CollectionBase instance. This method is not overridable.
PublicSortSorts the items in the item collection.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also Classes | SftTree/NET 2.0