DataGridViewCell.InheritedState 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取从其行和列的状态继承的单元格的当前状态。
public:
property System::Windows::Forms::DataGridViewElementStates InheritedState { System::Windows::Forms::DataGridViewElementStates get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewElementStates InheritedState { get; }
[<System.ComponentModel.Browsable(false)>]
member this.InheritedState : System.Windows.Forms.DataGridViewElementStates
Public ReadOnly Property InheritedState As DataGridViewElementStates
属性值
表示单元格的当前状态的值的 DataGridViewElementStates 按位组合。
- 特性
例外
单元格不包含在控件中 DataGridView ,其 RowIndex 属性的值不是 -1。
单元格包含在控件中 DataGridView ,其 RowIndex 属性的值为 -1。