Class AutoCompleteTargetCollection
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 AutoCompleteTargetCollection : 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
AutoCompleteTargetCollection()
Declaration
public AutoCompleteTargetCollection()
Properties
Item[Int32]
Gets / sets the Indexer property for the AutoCompleteDataColumnInfoCollection class.
Declaration
public AutoCompleteTarget this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
AutoCompleteTarget |
Remarks
Returns the AutoCompleteDataColumnInfo object based on the index in the collection.
Methods
Add(AutoCompleteTarget)
Adds one person to the collection.
Declaration
public int Add(AutoCompleteTarget column)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteTarget | column | The AutoCompleteDataColumnInfo object to be added. |
Returns
Type | Description |
---|---|
System.Int32 | returns the count of the list items |
AddRange(AutoCompleteTarget[])
Add array of targets into collection.
Declaration
public void AddRange(AutoCompleteTarget[] array)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteTarget[] | array | array of columns. |
Contains(AutoCompleteTarget)
Indicates whether the collection contains a specific AutoCompleteDataColumnInfo entry.
Declaration
public bool Contains(AutoCompleteTarget column)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteTarget | 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(AutoCompleteTarget[], 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(AutoCompleteTarget[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteTarget[] | array | Destination array. |
System.Int32 | index | Starting index from which to start the copying. |
IndexOf(AutoCompleteTarget)
Return order index of the column in collection, otherwise -1.
Declaration
public int IndexOf(AutoCompleteTarget column)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteTarget | column | The AutoCompleteDataColumnInfo to locate in the access control list. |
Returns
Type | Description |
---|---|
System.Int32 | Order index in collection, otherwise -1. |
Insert(Int32, AutoCompleteTarget)
Insert spcified column into collection.
Declaration
public void Insert(int index, AutoCompleteTarget column)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | position where to insert column. |
AutoCompleteTarget | column | The AutoCompleteDataColumnInfo to locate in the access control list. |
Remove(AutoCompleteTarget)
Removes DataColomnInfo objrects from the collectoin.
Declaration
public void Remove(AutoCompleteTarget column)
Parameters
Type | Name | Description |
---|---|---|
AutoCompleteTarget | column | The AutoCompleteDataColumnInfo object to remove. |