TableColumnCollection Class
Definition
Provides standard facilities for creating and managing a type-safe, ordered collection of TableColumn objects.
public ref class TableColumnCollection sealed : System::Collections::Generic::ICollection<System::Windows::Documents::TableColumn ^>, System::Collections::Generic::IEnumerable<System::Windows::Documents::TableColumn ^>, System::Collections::Generic::IList<System::Windows::Documents::TableColumn ^>, System::Collections::IList
public sealed class TableColumnCollection : System.Collections.Generic.ICollection<System.Windows.Documents.TableColumn>, System.Collections.Generic.IEnumerable<System.Windows.Documents.TableColumn>, System.Collections.Generic.IList<System.Windows.Documents.TableColumn>, System.Collections.IList
type TableColumnCollection = class
interface IList<TableColumn>
interface ICollection<TableColumn>
interface seq<TableColumn>
interface IEnumerable
interface IList
interface ICollection
Public NotInheritable Class TableColumnCollection
Implements ICollection(Of TableColumn), IEnumerable(Of TableColumn), IList, IList(Of TableColumn)
- Inheritance
-
TableColumnCollection
- Implements
Remarks
This collection supports standard zero-based indexing.
The Columns property provided by the Table class returns a TableColumnCollection. For more information, see How to: Manipulate a Table's Columns through the Columns Property.
Properties
Capacity |
Gets or sets the pre-allocated collection item capacity for this collection. |
Count |
Gets the number of items currently contained by the collection. |
IsReadOnly |
This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
IsSynchronized |
This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
Item[Int32] |
Gets the collection item at a specified index. This is an indexed property. |
SyncRoot |
This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
Methods
Add(TableColumn) |
Appends a specified item to the collection. |
Clear() |
Clears all items from the collection. |
Contains(TableColumn) |
Queries for the presence of a specified item in the collection. |
CopyTo(Array, Int32) |
Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array. |
CopyTo(TableColumn[], Int32) |
Copies the contents of the collection and inserts them into a specified TableColumn array of starting at a specified index position in the array. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
IndexOf(TableColumn) |
Returns the zero-based index of specified collection item. |
Insert(Int32, TableColumn) |
Inserts a specified item in the collection at a specified index position. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(TableColumn) |
Removes a specified item from the collection. |
RemoveAt(Int32) |
Removes an item, specified by index, from the collection. |
RemoveRange(Int32, Int32) |
Removes a range of items, specified by beginning index and count, from the collection. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
TrimToSize() |
Optimizes memory consumption for the collection by setting the underlying collection Capacity equal to the Count of items currently in the collection. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
For a description of this member, see GetEnumerator(). |
IEnumerable<TableColumn>.GetEnumerator() |
For a description of this member, see GetEnumerator(). |
IList.Add(Object) |
For a description of this member, see Add(Object). Use the type-safe Add(TableColumn) method instead. |
IList.Clear() |
For a description of this member, see Clear(). Use the type-safe Clear() method instead. |
IList.Contains(Object) |
For a description of this member, see Contains(Object). Use the type-safe Contains(TableColumn) method instead. |
IList.IndexOf(Object) |
For a description of this member, see IndexOf(Object). Use the type-safe IndexOf(TableColumn) method instead. |
IList.Insert(Int32, Object) |
For a description of this member, see Insert(Int32, Object). Use the type-safe Insert(Int32, TableColumn) method instead. |
IList.IsFixedSize |
For a description of this member, see IsFixedSize. |
IList.IsReadOnly |
For a description of this member, see IsReadOnly. |
IList.Item[Int32] |
For a description of this member, see Item[Int32]. Use the type-safe Item[Int32] property instead. |
IList.Remove(Object) |
For a description of this member, see Remove(Object). Use the type-safe Remove(TableColumn), RemoveAt(Int32), or RemoveRange(Int32, Int32) methods instead. |
IList.RemoveAt(Int32) |
For a description of this member, see RemoveAt(Int32). Use the type-safe Remove(TableColumn), RemoveAt(Int32), or RemoveRange(Int32, Int32) methods instead. |
Extension Methods
CopyToDataTable<T>(IEnumerable<T>) |
Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
Ancestors<T>(IEnumerable<T>) |
Returns a collection of elements that contains the ancestors of every node in the source collection. |
Ancestors<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection. |
DescendantNodes<T>(IEnumerable<T>) |
Returns a collection of the descendant nodes of every document and element in the source collection. |
Descendants<T>(IEnumerable<T>) |
Returns a collection of elements that contains the descendant elements of every element and document in the source collection. |
Descendants<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
Elements<T>(IEnumerable<T>) |
Returns a collection of the child elements of every element and document in the source collection. |
Elements<T>(IEnumerable<T>, XName) |
Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
InDocumentOrder<T>(IEnumerable<T>) |
Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. |
Nodes<T>(IEnumerable<T>) |
Returns a collection of the child nodes of every document and element in the source collection. |
Remove<T>(IEnumerable<T>) |
Removes every node in the source collection from its parent node. |