menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GroupView.GroupViewItemCollection - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GroupView.GroupViewItemCollection

    The collection of GroupViewItem objects present in the GroupView control.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    GroupView.GroupViewItemCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.OnClear()
    System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
    System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    System.Collections.CollectionBase.OnClearComplete()

    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
    System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)

    OnInsertComplete(Int32, Object)

    Declaration
    protected override void OnInsertComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)

    OnRemoveComplete(Int32, Object)

    Declaration
    protected override void OnRemoveComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)

    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

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved