Class GridNamespaceGroupItemCollection
Implements a collection that stores 'GridNamespaceGroupItem' objects.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridNamespaceGroupItemCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
GridNamespaceGroupItemCollection()
Initializes a new instance of GridNamespaceGroupItemCollection class.
Declaration
public GridNamespaceGroupItemCollection()
GridNamespaceGroupItemCollection(GridNamespaceGroupItem[])
Initializes a new instance of 'GridNamespaceGroupItemCollection' with an array of 'GridNamespaceGroupItem' objects.
Declaration
public GridNamespaceGroupItemCollection(GridNamespaceGroupItem[] styValue)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItem[] | styValue | An array of 'GridNamespaceGroupItem' objects with which to initialize the collection |
GridNamespaceGroupItemCollection(GridNamespaceGroupItemCollection)
Initializes a new instance of GridNamespaceGroupItemCollection based on an already existing instance.
Declaration
public GridNamespaceGroupItemCollection(GridNamespaceGroupItemCollection styValue)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItemCollection | styValue | A GridNamespaceGroupItemCollection from which the contents is copied. |
Properties
Item[Int32]
Gets or sets the GridNamespaceGroupItem item at the specified index position.
Declaration
public GridNamespaceGroupItem this[int intIndex] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | intIndex | The zero-based index of the entry to locate in the collection. |
Property Value
Type | Description |
---|---|
GridNamespaceGroupItem | The entry at the specified index of the collection. |
Methods
Add(GridNamespaceGroupItem)
Adds a 'GridNamespaceGroupItem' item with the specified value to the 'GridNamespaceGroupItemCollection'
Declaration
public int Add(GridNamespaceGroupItem styValue)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItem | styValue | The GridNamespaceGroupItem to add. |
Returns
Type | Description |
---|---|
System.Int32 | The index at which the new element was inserted. |
Add(String)
Adds the base64 string value to the collection, returning the Name for the item. If the base64 string already exists, the current Name for the item is returned.
Declaration
public string Add(string base64Str)
Parameters
Type | Name | Description |
---|---|---|
System.String | base64Str | The base64 string to add |
Returns
Type | Description |
---|---|
System.String | The Name of the GridNamespaceGroupItem which contains this value |
AddRange(GridNamespaceGroupItem[])
Copies the elements of an array at the end of this instance of GridNamespaceGroupItemCollection.
Declaration
public void AddRange(GridNamespaceGroupItem[] styValue)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItem[] | styValue | An array of GridNamespaceGroupItem objects to add to the collection. |
AddRange(GridNamespaceGroupItemCollection)
Adds the contents of another GridNamespaceGroupItemCollection at the end of this instance.
Declaration
public void AddRange(GridNamespaceGroupItemCollection styValue)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItemCollection | styValue | A GridNamespaceGroupItemCollection containing the objects to add to the collection. |
Contains(GridNamespaceGroupItem)
Gets a value indicating whether the GridNamespaceGroupItemCollection contains the specified value.
Declaration
public bool Contains(GridNamespaceGroupItem styValue)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItem | styValue | The item to locate. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item exists in the collection; false otherwise. |
ContainsValue(String)
Gets a value indicating whether the GridNamespaceGroupItemCollection contains a GridNamespaceGroupItem object with the specified value.
Declaration
public bool ContainsValue(string val)
Parameters
Type | Name | Description |
---|---|---|
System.String | val | The value to find in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item exists in the collection; false otherwise. |
CopyTo(GridNamespaceGroupItem[], Int32)
Copies the GridNamespaceGroupItemCollection values to a one-dimensional System.Array instance starting at the specified array index.
Declaration
public void CopyTo(GridNamespaceGroupItem[] styArray, int intIndex)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItem[] | styArray | The one-dimensional System.Array that represents the copy destination. |
System.Int32 | intIndex | The index in the array where copying begins. |
GetEnumerator()
Returns an enumerator that can be used to iterate through the 'GridNamespaceGroupItemCollection'.
Declaration
public GridNamespaceGroupItemCollection.GridNamespaceGroupItemEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
GridNamespaceGroupItemCollection.GridNamespaceGroupItemEnumerator | An enumerator. |
GetNameForValue(String)
Retrieves the name of the GridNamespaceGroupItem object that has the supplied value.
Declaration
public string GetNameForValue(string val)
Parameters
Type | Name | Description |
---|---|---|
System.String | val | The value of the GridNamespaceGroupItem object in question. |
Returns
Type | Description |
---|---|
System.String | Current object's name for the specified value. |
GetValueForName(String)
Retrieves the value of the GridNamespaceGroupItem object that has the supplied name.
Declaration
public string GetValueForName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the GridNamespaceGroupItem object. |
Returns
Type | Description |
---|---|
System.String | Current object's value for the given name. |
IndexOf(GridNamespaceGroupItem)
Returns the index of a GridNamespaceGroupItem object in the collection.
Declaration
public int IndexOf(GridNamespaceGroupItem styValue)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItem | styValue | The GridNamespaceGroupItem object whose index will be retrieved. |
Returns
Type | Description |
---|---|
System.Int32 | If found, the index of the value; otherwise, -1. |
Insert(Int32, GridNamespaceGroupItem)
Inserts an existing GridNamespaceGroupItem into the collection at the specified index.
Declaration
public void Insert(int intIndex, GridNamespaceGroupItem styValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | intIndex | The zero-based index where the new item should be inserted. |
GridNamespaceGroupItem | styValue | The item to insert. |
OnInsert(Int32, Object)
TODO: Describe what custom processing this method does before inserting a new item in the collection
Declaration
protected override void OnInsert(int intIndex, object objValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | intIndex | |
System.Object | objValue |
Overrides
OnSet(Int32, Object, Object)
TODO: Describe what custom processing this method does before setting an item in the collection
Declaration
protected override void OnSet(int intIndex, object objOldValue, object objNewValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | intIndex | |
System.Object | objOldValue | |
System.Object | objNewValue |
Overrides
Remove(GridNamespaceGroupItem)
Removes a specific item from the GridNamespaceGroupItemCollection.
Declaration
public void Remove(GridNamespaceGroupItem styValue)
Parameters
Type | Name | Description |
---|---|---|
GridNamespaceGroupItem | styValue | The item to remove from the GridNamespaceGroupItemCollection. |