Class MaskedEditDataGroupInfoCollection
Collection of MaskedEditDataGroupInfo objects. Used in the DataGroups property of the MaskedEditBox control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class MaskedEditDataGroupInfoCollection : CollectionBase, IList, ICollection, IEnumerable
Remarks
The MaskedEditDataGroupInfoCollection is a set of objects each of which hold information required to create a data group in a MaskedEditBox.
Constructors
MaskedEditDataGroupInfoCollection()
Creates an instance of the MaskedEditDataGroupInfoCollection class.
Declaration
public MaskedEditDataGroupInfoCollection()
MaskedEditDataGroupInfoCollection(MaskedEditBox)
Overloaded. Creates an instance of the MaskedEditDataGroupInfoCollection class.
Declaration
public MaskedEditDataGroupInfoCollection(MaskedEditBox maskedEdit)
Parameters
Type | Name | Description |
---|---|---|
MaskedEditBox | maskedEdit | The MaskedEditBox control that contains this collection. |
Properties
Item[Int32]
Gets / sets the Indexer property for the MaskedEditDataGroupInfoCollection class.
Declaration
public MaskedEditDataGroupInfo this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
MaskedEditDataGroupInfo |
Remarks
Get the MaskedEditDataGroupInfo object based on the index in the collection.
Item[String]
Gets / sets the Indexer property for the MaskedEditDataGroupInfoCollection class.
Declaration
public MaskedEditDataGroupInfo this[string dataGroupName] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | dataGroupName |
Property Value
Type |
---|
MaskedEditDataGroupInfo |
Remarks
Get the MaskedEditDataGroupInfo object based on the index in the collection.
Owner
Gets / sets the owner of this collection.
Declaration
public MaskedEditBox Owner { get; set; }
Property Value
Type |
---|
MaskedEditBox |
Methods
Add(MaskedEditDataGroupInfo)
Adds one object to the collection.
Declaration
public int Add(MaskedEditDataGroupInfo dataGroup)
Parameters
Type | Name | Description |
---|---|---|
MaskedEditDataGroupInfo | dataGroup | The MaskedEditDataGroupInfo object to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The count of the list items. |
Contains(MaskedEditDataGroupInfo)
Indicates whether the collection contains a specific MaskedEditDataGroupInfo entry.
Declaration
public bool Contains(MaskedEditDataGroupInfo dataGroup)
Parameters
Type | Name | Description |
---|---|---|
MaskedEditDataGroupInfo | dataGroup | The MaskedEditDataGroupInfo to locate in the DataGroups. |
Returns
Type | Description |
---|---|
System.Boolean | True if the MaskedEditDataGroupInfo entry is found in the collection; false otherwise. |
CopyTo(MaskedEditDataGroupInfo[], Int32)
Copies all the elements of the current one-dimensional array to the specified one-dimensional array starting at the specified destination array index.
Declaration
public void CopyTo(MaskedEditDataGroupInfo[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
MaskedEditDataGroupInfo[] | array | The array. |
System.Int32 | index | The index. |
GetDataGroupValue(MaskedEditDataGroupInfo)
Returns the value of the DataGroup.
Declaration
public string GetDataGroupValue(MaskedEditDataGroupInfo val)
Parameters
Type | Name | Description |
---|---|---|
MaskedEditDataGroupInfo | val |
Returns
Type | Description |
---|---|
System.String | String value of the DataGroup. |
Insert(Int32, MaskedEditDataGroupInfo)
Inserts the MaskedEditDataGroupInfo into the collection at the specified index.
Declaration
public void Insert(int index, MaskedEditDataGroupInfo item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which the item is to be inserted. |
MaskedEditDataGroupInfo | item | The MaskedEditDataGroupInfo to be inserted. |
OnInsert(Int32, Object)
Overrides OnInsert.
Declaration
protected override void OnInsert(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
OnInsertComplete(Int32, Object)
Overrides OnInsertComplete.
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
Remove(MaskedEditDataGroupInfo)
Removes MaskedEditDataGroupInfo objects from the collection.
Declaration
public void Remove(MaskedEditDataGroupInfo dataGroup)
Parameters
Type | Name | Description |
---|---|---|
MaskedEditDataGroupInfo | dataGroup | The MaskedEditDataGroupInfo object to remove. |