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 中添加一个 ColumnDefinitionCollection 元素。Adds 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)

返回给定 ColumnDefinitionColumnDefinitionCollection 中的索引位置。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 的浅表副本。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).

扩展方法

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

在给定其泛型参数 TDataTable 的输入 DataRow 对象的情况下,返回包含 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 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) 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)

IEnumerable 转换为 IQueryableConverts 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.

适用于

另请参阅