DataGridViewColumnHeaderCell.GetInheritedStyle 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取应用于单元格的样式。
public:
override System::Windows::Forms::DataGridViewCellStyle ^ GetInheritedStyle(System::Windows::Forms::DataGridViewCellStyle ^ inheritedCellStyle, int rowIndex, bool includeColors);
public override System.Windows.Forms.DataGridViewCellStyle GetInheritedStyle(System.Windows.Forms.DataGridViewCellStyle inheritedCellStyle, int rowIndex, bool includeColors);
public override System.Windows.Forms.DataGridViewCellStyle GetInheritedStyle(System.Windows.Forms.DataGridViewCellStyle? inheritedCellStyle, int rowIndex, bool includeColors);
override this.GetInheritedStyle : System.Windows.Forms.DataGridViewCellStyle * int * bool -> System.Windows.Forms.DataGridViewCellStyle
Public Overrides Function GetInheritedStyle (inheritedCellStyle As DataGridViewCellStyle, rowIndex As Integer, includeColors As Boolean) As DataGridViewCellStyle
参数
- inheritedCellStyle
- DataGridViewCellStyle
要填充继承的单元格样式的 A DataGridViewCellStyle 。
- rowIndex
- Int32
单元格的父行的索引。
- includeColors
- Boolean
true 若要在返回的单元格样式中包含继承的颜色,则为 ;否则,为 false.
返回
包含 DataGridViewCellStyle 从单元格的父行、列和 DataGridView继承的单元格的样式设置。
例外
rowIndex 不是 -1。
注解
此方法返回一个从由