DataGridViewCell.InheritedStyle プロパティ

定義

セルに現在適用されているスタイルを取得します。

public:
 property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }
[<System.ComponentModel.Browsable(false)>]
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStyle
Public ReadOnly Property InheritedStyle As DataGridViewCellStyle

プロパティ値

セルに現在適用されている DataGridViewCellStyle

属性

例外

セルが DataGridView コントロールに属していません。

- または -

ColumnIndex が 0 未満です。これは、セルが行ヘッダーのセルであることを示します。

セルを含む行が共有行です。

- または -

セルが列ヘッダーのセルです。

注釈

コントロールは DataGridView 、 型の他のプロパティからスタイルを継承する cell InheritedStyle プロパティで示されるスタイルを使用してセルを表示します DataGridViewCellStyle。 プロパティで Style 指定されたスタイルは、他のすべてのセル スタイル プロパティで指定されたスタイルよりも優先されますが、セルの外観に影響するすべてのスタイルを必ずしも示すわけではありません。

詳細については、「Windows フォーム DataGridView コントロールでのセルのスタイル」を参照してください。

適用対象

こちらもご覧ください