ColumnDefinitionCollection ColumnDefinitionCollection ColumnDefinitionCollection ColumnDefinitionCollection Class

定義

提供對經過排序之強類型 ColumnDefinition 物件集合的存取權。Provides access to an ordered, strongly typed collection of ColumnDefinition objects.

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

屬性

Count Count Count Count

取得這個 ColumnDefinitionCollection 執行個體內的項目總數。Gets the total number of items within this instance of ColumnDefinitionCollection.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得值,這個值表示 ColumnDefinitionCollection 是否為唯讀。Gets a value that indicates whether a ColumnDefinitionCollection is read-only.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

取得值,這個值表示是否同步處理這個 ColumnDefinitionCollection 的存取 (安全執行緒)。Gets a value that indicates whether access to this ColumnDefinitionCollection is synchronized (thread safe).

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

取得值,這個值表示 ColumnDefinitionCollection 內的目前項目。Gets a value that indicates the current item within a ColumnDefinitionCollection.

SyncRoot SyncRoot SyncRoot SyncRoot

取得可用以同步存取 ColumnDefinitionCollection 的物件。Gets an object that can be used to synchronize access to the ColumnDefinitionCollection.

方法

Add(ColumnDefinition) Add(ColumnDefinition) Add(ColumnDefinition) Add(ColumnDefinition)

ColumnDefinition 項目加入至 ColumnDefinitionCollectionAdds a ColumnDefinition element to a ColumnDefinitionCollection.

Clear() Clear() Clear() Clear()

清除 ColumnDefinitionCollection 的內容。Clears the content of the ColumnDefinitionCollection.

Contains(ColumnDefinition) Contains(ColumnDefinition) Contains(ColumnDefinition) Contains(ColumnDefinition)

判斷 ColumnDefinition 內是否存在指定的 ColumnDefinitionCollectionDetermines whether a given ColumnDefinition exists within a ColumnDefinitionCollection.

CopyTo(ColumnDefinition[], Int32) CopyTo(ColumnDefinition[], Int32) CopyTo(ColumnDefinition[], Int32) CopyTo(ColumnDefinition[], Int32)

ColumnDefinition 物件陣列複製到 ColumnDefinitionCollection 內的指定索引位置。Copies an array of ColumnDefinition objects to a given index position within a ColumnDefinitionCollection.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
IndexOf(ColumnDefinition) IndexOf(ColumnDefinition) IndexOf(ColumnDefinition) IndexOf(ColumnDefinition)

傳回 ColumnDefinition 內指定之 ColumnDefinitionCollection 的索引位置。Returns the index position of a given ColumnDefinition within a ColumnDefinitionCollection.

Insert(Int32, ColumnDefinition) Insert(Int32, ColumnDefinition) Insert(Int32, ColumnDefinition) Insert(Int32, ColumnDefinition)

ColumnDefinition 插入 ColumnDefinitionCollection 內的指定索引位置。Inserts a ColumnDefinition at the specified index position within a ColumnDefinitionCollection.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
Remove(ColumnDefinition) Remove(ColumnDefinition) Remove(ColumnDefinition) Remove(ColumnDefinition)

ColumnDefinition 移除 ColumnDefinitionCollectionRemoves a ColumnDefinition from a ColumnDefinitionCollection.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

ColumnDefinition 的指定索引位置移除 ColumnDefinitionCollectionRemoves a ColumnDefinition from a ColumnDefinitionCollection at the specified index position.

RemoveRange(Int32, Int32) RemoveRange(Int32, Int32) RemoveRange(Int32, Int32) RemoveRange(Int32, Int32)

ColumnDefinition 移除一個範圍的 ColumnDefinitionCollection 物件。Removes a range of ColumnDefinition objects from a ColumnDefinitionCollection.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

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

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

IEnumerable<ColumnDefinition>.GetEnumerator() IEnumerable<ColumnDefinition>.GetEnumerator() IEnumerable<ColumnDefinition>.GetEnumerator() IEnumerable<ColumnDefinition>.GetEnumerator()

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

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

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

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

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

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

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

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

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

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

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

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

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

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

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

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

傳回DataTable,其中包含副本DataRow物件,指定輸入IEnumerable<T>物件其中泛型參數TDataRowReturns 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) 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) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) 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>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目之子代節點的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) 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) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) 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>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) 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) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) 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>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) 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>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目的子節點集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

在來源集合中,從每一個節點的父節點移除這些節點。Removes every node in the source collection from its parent node.

適用於

另請參閱