Class GroupView.GroupViewItemCollection
The collection of GroupViewItem objects present in the GroupView control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class GroupViewItemCollection : CollectionBase, IList, ICollection, IEnumerable
Remarks
Each item in a GroupView control is an instance of a GroupViewItem type and the collection is represented by the GroupViewItemCollection class. The GroupViewItemCollection class implements the IList and ICollection interfaces. GroupViewItems
Constructors
GroupViewItemCollection(GroupView)
Creates a new instance of the GroupView.GroupViewItemCollection class.
Declaration
public GroupViewItemCollection(GroupView ctrl)
Parameters
Type | Name | Description |
---|---|---|
GroupView | ctrl | The GroupView control that contains this collection. |
Fields
bLockUpdate
Declaration
protected bool bLockUpdate
Field Value
Type |
---|
System.Boolean |
gViewHost
Declaration
protected GroupView gViewHost
Field Value
Type |
---|
GroupView |
Properties
Item[Int32]
Gets / sets a GroupViewItem in the collection.
Declaration
public GroupViewItem this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the GroupViewItem to get or set. |
Property Value
Type |
---|
GroupViewItem |
Methods
Add(GroupViewItem)
Adds the GroupViewItem to the collection.
Declaration
public int Add(GroupViewItem item)
Parameters
Type | Name | Description |
---|---|---|
GroupViewItem | item | The GroupViewItem to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the new item within the collection. |
AddRange(GroupViewItem[])
Adds an array of GroupViewItems to the GroupView control's GroupViewItems collection.
Declaration
public void AddRange(GroupViewItem[] items)
Parameters
Type | Name | Description |
---|---|---|
GroupViewItem[] | items | An array of GroupViewItem objects. |
Contains(GroupViewItem)
Indicates whether the specified GroupViewItem is present in the collection.
Declaration
public bool Contains(GroupViewItem item)
Parameters
Type | Name | Description |
---|---|---|
GroupViewItem | item | The GroupViewItem to locate in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item is present; False otherwise. |
CopyTo(GroupViewItem[], Int32)
Declaration
public void CopyTo(GroupViewItem[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
GroupViewItem[] | array | |
System.Int32 | index |
IndexOf(GroupViewItem)
Returns the zero-based index of the GroupViewItem.
Declaration
public int IndexOf(GroupViewItem item)
Parameters
Type | Name | Description |
---|---|---|
GroupViewItem | item | The GroupViewItem to locate in the collection. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the item; -1 if the item cannot be found. |
Insert(Int32, GroupViewItem)
Inserts the GroupViewItem into the collection at the specified index.
Declaration
public void Insert(int index, GroupViewItem item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which the item is to be inserted. |
GroupViewItem | item | The GroupViewItem to be inserted. |
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
OnCollectioChanged(CollectionChangeEventArgs)
Raises the collection changed event.
Declaration
protected void OnCollectioChanged(CollectionChangeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.CollectionChangeEventArgs | args |
OnInsert(Int32, Object)
Declaration
protected override void OnInsert(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
Remove(GroupViewItem)
Removes the GroupViewItem from the collection.
Declaration
public void Remove(GroupViewItem item)
Parameters
Type | Name | Description |
---|---|---|
GroupViewItem | item | The GroupViewItem to be removed. |
Events
CollectionChanged
Occurs when a GroupView.GroupViewItemCollection is changed.
Declaration
public event CollectionChangeEventHandler CollectionChanged
Event Type
Type |
---|
System.ComponentModel.CollectionChangeEventHandler |