GridItem GridItem GridItem GridItem Class

定义

实现 PropertyGrid 中的一行。Implements one row in a PropertyGrid.

public ref class GridItem abstract
public abstract class GridItem
type GridItem = class
Public MustInherit Class GridItem
继承
GridItemGridItemGridItemGridItem

注解

网格项表示到视图的层次结构PropertyGridGrid items represent the hierarchy of the view into a PropertyGrid. 可以使用GridItem以获取有关该网格的状态和内容的信息。You can use a GridItem to obtain information about the grid's state and contents.

GridItem 因为它们代表的状态的快照,不应缓存对象PropertyGrid时访问它们,和网格活动可能会释放它们。GridItem objects should not be cached because they represent a snapshot of the state of the PropertyGrid at the time they are accessed, and grid activity might dispose them. PropertyGrid通常会重新创建GridItem将视图更改为该用户没有在内部的对象。The PropertyGrid often recreates GridItem objects internally without changing the view to the user.

构造函数

GridItem() GridItem() GridItem() GridItem()

初始化 GridItem 类的新实例。Initializes a new instance of the GridItem class.

属性

Expandable Expandable Expandable Expandable

在派生类中重写时,可获取指示指定属性是否可扩展为显示嵌套属性的值。When overridden in a derived class, gets a value indicating whether the specified property is expandable to show nested properties.

Expanded Expanded Expanded Expanded

当在派生类中重写时,获取或设置一个值,该值指示 GridItem 是否处于已扩展状态。When overridden in a derived class, gets or sets a value indicating whether the GridItem is in an expanded state.

GridItems GridItems GridItems GridItems

当在派生类中重写时,获取 GridItem 对象(如果有的话)的集合,这些对象关联为此 GridItem 的子级。When overridden in a derived class, gets the collection of GridItem objects, if any, associated as a child of this GridItem.

GridItemType GridItemType GridItemType GridItemType

当在派生类中重写时,获取此 GridItem 的类型。When overridden in a derived class, gets the type of this GridItem.

Label Label Label Label

当在派生类中重写时,获取此 GridItem 的文本。When overridden in a derived class, gets the text of this GridItem.

Parent Parent Parent Parent

当在派生类中重写时,获取此 GridItem 的父 GridItem(如果有的话)。When overridden in a derived class, gets the parent GridItem of this GridItem, if any.

PropertyDescriptor PropertyDescriptor PropertyDescriptor PropertyDescriptor

当在派生类中重写时,获取与此 PropertyDescriptor 关联的 GridItemWhen overridden in a derived class, gets the PropertyDescriptor that is associated with this GridItem.

Tag Tag Tag Tag

获取或设置有关 GridItem 的用户定义数据。Gets or sets user-defined data about the GridItem.

Value Value Value Value

当在派生类中重写时,获取此 GridItem 的当前值。When overridden in a derived class, gets the current value of this GridItem.

方法

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

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

(Inherited from Object)
Select() Select() Select() Select()

当在派生类中重写时,在 GridItem 中选择此 PropertyGridWhen overridden in a derived class, selects this GridItem in the PropertyGrid.

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

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于