DataGridViewBand.InheritedStyle 属性
定义
获取对于当前带区有效的单元格样式(考虑样式继承)。Gets the cell style in effect for the current band, taking into account style inheritance.
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; }
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStyle
Public Overridable ReadOnly Property InheritedStyle As DataGridViewCellStyle
属性值
与 DataGridViewCellStyle 关联的 DataGridViewBand。A DataGridViewCellStyle associated with the DataGridViewBand. 默认值为 null
。The default is null
.
- 属性
注解
DataGridViewBand类中此属性的实现始终返回null
, 因为此基类不能包含元素。The implementation of this property in the DataGridViewBand class always returns null
because this base class cannot contain elements.
有关样式继承的详细信息, 请参阅Windows 窗体 DataGridView 控件中的单元格样式。For more information about style inheritance, see Cell Styles in the Windows Forms DataGridView Control.