Class TreeListViewColumnDescriptionCollection
Collection that holds all the column descriptions for a single TreeListView
.
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Controls
Assembly: Phoenix.Controls.TreeListView.dll
Syntax
public class TreeListViewColumnDescriptionCollection : IList<TreeListViewColumnDescription>, ICollection<TreeListViewColumnDescription>, IEnumerable<TreeListViewColumnDescription>, IList, ICollection, IEnumerable
Properties
View SourceCount
Gets the number of elements in the list.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsReadOnly
Gets a value indicating whether this list is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Gets or sets the element at the specified index.
Declaration
public TreeListViewColumnDescription this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index for the item to access/modify. |
Property Value
Type | Description |
---|---|
TreeListViewColumnDescription | The column description at the specified index. |
Remarks
Property from IList<TreeListViewColumnDescription>.
Methods
View SourceAdd(TreeListViewColumnDescription)
Adds an item to the end of the list.
Declaration
public void Add(TreeListViewColumnDescription item)
Parameters
Type | Name | Description |
---|---|---|
TreeListViewColumnDescription | item | Item to add. |
Clear()
Removes all elements from the list.
Declaration
public void Clear()
Contains(TreeListViewColumnDescription)
Determines whether an element is in the list.
Declaration
public bool Contains(TreeListViewColumnDescription item)
Parameters
Type | Name | Description |
---|---|---|
TreeListViewColumnDescription | item | Item to look for. |
Returns
Type | Description |
---|---|
System.Boolean | True if the item is in the list; otherwise, false. |
CopyTo(TreeListViewColumnDescription[], Int32)
Copies the entire list to a compatible one-dimensional array, starting at the specified index of the target array.
Declaration
public void CopyTo(TreeListViewColumnDescription[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
TreeListViewColumnDescription[] | array | The one-dimensional array that is the destination of the elements copied from the list. |
System.Int32 | arrayIndex | The zero-based index in the array at which copying begins. |
IndexOf(TreeListViewColumnDescription)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire list.
Declaration
public int IndexOf(TreeListViewColumnDescription item)
Parameters
Type | Name | Description |
---|---|---|
TreeListViewColumnDescription | item | Item to look for. |
Returns
Type | Description |
---|---|
System.Int32 | Item's index or -1 if it wasn't found. |
Insert(Int32, TreeListViewColumnDescription)
Inserts an item into the list at the specified index.
Declaration
public void Insert(int index, TreeListViewColumnDescription item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which item should be inserted. |
TreeListViewColumnDescription | item | The object to insert. |
Remove(TreeListViewColumnDescription)
Removes the first occurrence of a specific object from the list.
Declaration
public bool Remove(TreeListViewColumnDescription item)
Parameters
Type | Name | Description |
---|---|---|
TreeListViewColumnDescription | item | Item to remove from the list. |
Returns
Type | Description |
---|---|
System.Boolean | True if item is successfully removed; otherwise, false. |
RemoveAt(Int32)
Removes the element at the specified index from the list.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to remove. |
Explicit Interface Implementations
View SourceIEnumerable<TreeListViewColumnDescription>.GetEnumerator()
Returns the generic enumerator for this list.
Declaration
IEnumerator<TreeListViewColumnDescription> IEnumerable<TreeListViewColumnDescription>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<TreeListViewColumnDescription> | The generic enumerator for this list. |
ICollection.CopyTo(Array, Int32)
Copies the entire list to a compatible one-dimensional array, starting at the specified index of the target array.
Declaration
void ICollection.CopyTo(Array array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | The one-dimensional array that is the destination of the elements copied from the list. |
System.Int32 | arrayIndex | The zero-based index in the array at which copying begins. |
ICollection.Count
Gets the number of elements in this list.
Declaration
int ICollection.Count { get; }
Returns
Type | Description |
---|---|
System.Int32 |
ICollection.IsSynchronized
Gets a value indicating whether access to collection is synchronized (thread safe).
Declaration
bool ICollection.IsSynchronized { get; }
Returns
Type | Description |
---|---|
System.Boolean |
ICollection.SyncRoot
Gets an object that can be used to synchronize access to the collection.
Declaration
object ICollection.SyncRoot { get; }
Returns
Type | Description |
---|---|
System.Object |
IEnumerable.GetEnumerator()
Returns the non-generic enumerator for this list.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | The non-generic enumerator for this list. |
IList.Add(Object)
Adds an item to the end of the list.
Declaration
int IList.Add(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Object to add. |
Returns
Type | Description |
---|---|
System.Int32 | The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection. |
IList.Clear()
Removes all items from the list.
Declaration
void IList.Clear()
IList.Contains(Object)
Determines whether the list contains a specific value.
Declaration
bool IList.Contains(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object to locate in the list. |
Returns
Type | Description |
---|---|
System.Boolean | True if the object is found in the list; otherwise, false. |
IList.IndexOf(Object)
Determines the index of a specific item in the list.
Declaration
int IList.IndexOf(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object to locate in the list. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the object if found; otherwise, -1. |
IList.Insert(Int32, Object)
Inserts an item to the list at the specified index.
Declaration
void IList.Insert(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which value should be inserted. |
System.Object | value | The object to insert into the list. |
IList.IsFixedSize
Gets a value indicating whether this list is of fixed size.
Declaration
bool IList.IsFixedSize { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IList.IsReadOnly
Gets a value indicating whether this list is read-only.
Declaration
bool IList.IsReadOnly { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IList.Item[Int32]
Gets or sets the object at the specified index.
Declaration
object IList.this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index for the object to access/modify. |
Returns
Type | Description |
---|---|
System.Object | The object at the specified index. |
Remarks
Property from IList.
IList.Remove(Object)
Removes the first occurrence of the specified object from the list.
Declaration
void IList.Remove(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The object to remove from the list. |
IList.RemoveAt(Int32)
Removes the list item at the specified index.
Declaration
void IList.RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the item to remove. |