Uredi

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 ICollection<TableColumn>
    interface seq<TableColumn>
    interface IEnumerable
    interface IList<TableColumn>
    interface ICollection
    interface IList
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

Name Description
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

Name Description
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.

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.

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.

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

Name Description
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.

Applies to

See also