DataGridViewColumn.InheritedStyle Egenskap

Definition

Hämtar cellformatet som för närvarande tillämpas på kolumnen.

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

Egenskapsvärde

En DataGridViewCellStyle som representerar cellformatet som används för att visa kolumnen.

Attribut

Kommentarer

Den här egenskapen är användbar för att avgöra vilka cellformat som tillämpas på alla celler i en kolumn oavsett eventuella radformat som också tillämpas på cellerna. Kolumnegenskapen InheritedStyle ärver sina värden från DefaultCellStyle egenskapen och DataGridView.DefaultCellStyle .

För mer information om hur cellformat ärvs, se Cellformat i Windows Forms DataGridView Control.

Gäller för

Se även