DataGridViewBand.InheritedStyle 属性     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取对于当前带区有效的单元格样式(考虑样式继承)。
public:
 virtual property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };[System.ComponentModel.Browsable(false)]
public virtual System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }[System.ComponentModel.Browsable(false)]
public virtual System.Windows.Forms.DataGridViewCellStyle? InheritedStyle { get; }[<System.ComponentModel.Browsable(false)>]
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStylePublic Overridable ReadOnly Property InheritedStyle As DataGridViewCellStyle属性值
与 DataGridViewCellStyle 关联的 DataGridViewBand。 默认值为 null。
- 属性
注解
类中 DataGridViewBand 此属性的实现始终返回, null 因为此基类不能包含元素。
有关样式继承的详细信息,请参阅 Windows 窗体 DataGridView 控件中的单元格样式。