Class AutoCompleteDataColumnInfoCollection
Collection of AutoCompleteDataColumnInfoobjects. Used in the Columns property of the AutoComplete control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class AutoCompleteDataColumnInfoCollection : CollectionBase, IList, ICollection, IEnumerable
Remarks
The AutoCompleteDataColumnInfoCollection is a set of objects each of which hold information required to create a column in a System.Windows.Forms.ListView.
Constructors
AutoCompleteDataColumnInfoCollection(AutoComplete)
Creates an instance of the AutoCompleteDataColumnInfoCollection class.
Declaration
public AutoCompleteDataColumnInfoCollection(AutoComplete autoComplete)
Parameters
Type | Name | Description |
---|---|---|
AutoComplete | autoComplete | The AutoComplete control that contains this collection. |
Fields
m_owner
The owner of the collection.
Declaration
protected AutoComplete m_owner
Field Value
Type |
---|
AutoComplete |
Properties
Item[Int32]
Gets or sets the Indexer property for the AutoCompleteDataColumnInfoCollection class.
Declaration
public AutoCompleteDataColumnInfo this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
AutoCompleteDataColumnInfo |
Remarks
Returns the AutoCompleteDataColumnInfo object based on the index in the collection.
Methods
Add(AutoCompleteDataColumnInfo)
Adds one object to the collection.
Declaration
public int Add(AutoCompleteDataColumnInfo column)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteDataColumnInfo | column | The AutoCompleteDataColumnInfo object to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The count of the list items |
Contains(AutoCompleteDataColumnInfo)
Indicates whether the collection contains a specific AutoCompleteDataColumnInfo entry.
Declaration
public bool Contains(AutoCompleteDataColumnInfo column)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteDataColumnInfo | column | The AutoCompleteDataColumnInfo to locate in the access control list. |
Returns
Type | Description |
---|---|
System.Boolean | True if the AutoCompleteDataColumnInfo entry is found in the collection; false otherwise. |
CopyTo(AutoCompleteDataColumnInfo[], 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(AutoCompleteDataColumnInfo[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteDataColumnInfo[] | array | Destination array. |
System.Int32 | index | Starting index from which to start copying. |
GetMatchingColumnIndex()
Returns the index of the column that is used for matching.
Declaration
public int GetMatchingColumnIndex()
Returns
Type | Description |
---|---|
System.Int32 | Index of the matching column. |
Remarks
Iterates through the collection and returns the index of the element that has the MatchingColumn to be true.
Insert(Int32, AutoCompleteDataColumnInfo)
Inserts the AutoCompleteDataColumnInfo into the collection at the specfied index.
Declaration
public void Insert(int index, AutoCompleteDataColumnInfo item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which the item is to be inserted. |
AutoCompleteDataColumnInfo | item | The AutoCompleteDataColumnInfo to be inserted. |
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
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
OnSetComplete(Int32, Object, Object)
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | oldValue | |
System.Object | newValue |
Overrides
Remove(AutoCompleteDataColumnInfo)
Removes AutoCompleteDataColumnInfo objects from the collection.
Declaration
public void Remove(AutoCompleteDataColumnInfo column)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteDataColumnInfo | column | The AutoCompleteDataColumnInfo object to remove. |