TableCellCollection 類別

定義

提供標準功能,以建立及管理 TableCell 物件之類型安全且已排序的集合。Provides standard facilities for creating and managing a type-safe, ordered collection of TableCell objects.

public ref class TableCellCollection sealed : System::Collections::Generic::ICollection<System::Windows::Documents::TableCell ^>, System::Collections::Generic::IEnumerable<System::Windows::Documents::TableCell ^>, System::Collections::Generic::IList<System::Windows::Documents::TableCell ^>, System::Collections::IList
public sealed class TableCellCollection : System.Collections.Generic.ICollection<System.Windows.Documents.TableCell>, System.Collections.Generic.IEnumerable<System.Windows.Documents.TableCell>, System.Collections.Generic.IList<System.Windows.Documents.TableCell>, System.Collections.IList
type TableCellCollection = class
    interface IList<TableCell>
    interface ICollection<TableCell>
    interface seq<TableCell>
    interface IEnumerable
    interface IList
    interface ICollection
Public NotInheritable Class TableCellCollection
Implements ICollection(Of TableCell), IEnumerable(Of TableCell), IList, IList(Of TableCell)
繼承
TableCellCollection
實作

備註

這個集合支援標準的以零為起始的索引。This collection supports standard zero-based indexing.

類別Cells提供的屬性會傳回。 TableCellCollection TableRowThe Cells property provided by the TableRow class returns a TableCellCollection.

屬性

Capacity

取得或設定這個集合預先配置的集合項目容量。Gets or sets the preallocated collection item capacity for this collection.

Count

取得集合目前所包含的項目數。Gets the number of items currently contained by the collection.

IsReadOnly

這個類型或成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,而且不能從程式碼直接使用。This type or member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

IsSynchronized

這個類型或成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,而且不能從程式碼直接使用。This type or member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

Item[Int32]

取得或設定位於指定之索引的集合項目。Gets or sets the collection item at a specified index. 這是已建立索引的屬性。This is an indexed property.

SyncRoot

這個類型或成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,而且不能從程式碼直接使用。This type or member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

方法

Add(TableCell)

將指定的 TableCell 附加至資料表儲存格集合。Appends a specified TableCell to the collection of table cells.

Clear()

清除集合中的所有項目。Clears all items from the collection.

Contains(TableCell)

查詢集合中是否存在指定的項目。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(TableCell[], Int32)

複製集合的內容並將這些內容插入指定的 TableCell 陣列,從陣列之指定的索引位置開始。Copies the contents of the collection and inserts them into a specified TableCell array of starting at a specified index position in the array.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IndexOf(TableCell)

傳回所指定集合項目的以零起始的索引。Returns the zero-based index of specified collection item.

Insert(Int32, TableCell)

將指定的項目插入至集合中的指定索引位置。Inserts a specified item in the collection at a specified index position.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Remove(TableCell)

從集合中移除指定的項目。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.

(繼承來源 Object)
TrimToSize()

設定基礎集合 Capacity 等於目前集合中之項目的 Count,以便最佳化集合的記憶體用量。Optimizes memory consumption for the collection by setting the underlying collection Capacity equal to the Count of items currently in the collection.

明確介面實作

IEnumerable.GetEnumerator()

如需這個成員的說明,請參閱 GetEnumerator()For a description of this member, see GetEnumerator().

IEnumerable<TableCell>.GetEnumerator()

如需這個成員的說明,請參閱 GetEnumerator()For a description of this member, see GetEnumerator().

IList.Add(Object)

如需這個成員的說明,請參閱 Add(Object)For a description of this member, see Add(Object).

IList.Clear()

如需這個成員的說明,請參閱 Clear()For a description of this member, see Clear().

IList.Contains(Object)

如需這個成員的說明,請參閱 Contains(Object)For a description of this member, see Contains(Object).

IList.IndexOf(Object)

如需這個成員的說明,請參閱 IndexOf(Object)For a description of this member, see IndexOf(Object).

IList.Insert(Int32, Object)

如需這個成員的說明,請參閱 Insert(Int32, Object)For a description of this member, see Insert(Int32, Object).

IList.IsFixedSize

如需這個成員的說明,請參閱 IsFixedSizeFor a description of this member, see IsFixedSize.

IList.IsReadOnly

如需這個成員的說明,請參閱 IsReadOnlyFor a description of this member, see IsReadOnly.

IList.Item[Int32]

如需這個成員的說明,請參閱 Item[Int32]For a description of this member, see Item[Int32].

IList.Remove(Object)

如需這個成員的說明,請參閱 Remove(Object)For a description of this member, see Remove(Object).

IList.RemoveAt(Int32)

如需這個成員的說明,請參閱 RemoveAt(Int32)For a description of this member, see RemoveAt(Int32).

擴充方法

CopyToDataTable<T>(IEnumerable<T>)

根據輸入 DataTable 物件 (其中泛型參數 TDataRow) 傳回包含 IEnumerable<T> 物件複本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts 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. 集合中只會包含具有相符之 XName 的項目。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. 集合中只會包含具有相符之 XName 的項目。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. 集合中只會包含具有相符之 XName 的項目。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.

適用於

另請參閱