Share via


GridItem 成员

实现 PropertyGrid 中的一行。

下表列出了由 GridItem 类型公开的成员。

受保护的构造函数

  名称 说明
Protected method GridItem 初始化 GridItem 类的新实例。

页首

公共属性

  名称 说明
Public property Expandable 在派生类中重写时,可获取指示指定属性是否可扩展为显示嵌套属性的值。
Public property Expanded 当在派生类中重写时,获取或设置一个值,该值指示 GridItem 是否处于已扩展状态。
Public property GridItems 当在派生类中重写时,获取 GridItem 对象(如果有的话)的集合,这些对象关联为此 GridItem 的子级。
Public property GridItemType 当在派生类中重写时,获取此 GridItem 的类型。
Public property Label 当在派生类中重写时,获取此 GridItem 的文本。
Public property Parent 当在派生类中重写时,获取此 GridItem 的父 GridItem(如果有的话)。
Public property PropertyDescriptor 当在派生类中重写时,获取与此 GridItem 关联的 PropertyDescriptor
Public property Tag 获取或设置有关 GridItem 的用户定义数据。
Public property Value 当在派生类中重写时,获取此 GridItem 的当前值。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Static ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Select 当在派生类中重写时,在 PropertyGrid 中选择此 GridItem
Public method ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)

页首

请参见

参考

GridItem 类
System.Windows.Forms 命名空间