DataGridViewColumn.InheritedStyle プロパティ

定義

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

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

プロパティ値

列を表示するときに使用されるセル スタイルを表す DataGridViewCellStyle

属性

注釈

このプロパティは、セルにも適用される行スタイルに関係なく、列内のすべてのセルに適用されるセル スタイルを決定するのに役立ちます。 column InheritedStyle プロパティは、 プロパティと プロパティから DefaultCellStyle 値を DataGridView.DefaultCellStyle 継承します。

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

適用対象

こちらもご覧ください