DataGridViewColumn.InheritedStyle Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.