GridItemCollection GridItemCollection GridItemCollection GridItemCollection Class


包含 GridItem 对象的集合。Contains a collection of GridItem objects.

public ref class GridItemCollection : System::Collections::ICollection
public class GridItemCollection : System.Collections.ICollection
type GridItemCollection = class
    interface ICollection
    interface IEnumerable
Public Class GridItemCollection
Implements ICollection


此类表示存储GridItem PropertyGrid在中的对象的集合。This class represents a collection of GridItem objects stored in a PropertyGrid.

您可以使用索引导GridItem入到集合中的某个特定的, 或者通过索引器访问的集合中网格项的标签。You can retrieve a specific GridItem by using either an index into the collection or the label of a grid item in the collection that you access through the indexer.


Empty Empty Empty Empty

指定 GridItemCollection 没有项。Specifies that the GridItemCollection has no entries.


Count Count Count Count

获取集合中网格项的数目。Gets the number of grid items in the collection.

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

获取位于指定索引处的 GridItemGets the GridItem at the specified index.

Item[String] Item[String] Item[String] Item[String]

获取具有匹配标签的 GridItemGets the GridItem with the matching label.


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

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回集合中所有网格项的枚举。Returns an enumeration of all the grid items in the collection.

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)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
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).

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

有关此成员的说明,请参见 IsSynchronizedFor a description of this member, see IsSynchronized.

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

有关此成员的说明,请参见 SyncRootFor a description of this member, see SyncRoot.


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.