Sdílet prostřednictvím


DataGridViewColumn.InheritedStyle Vlastnost

Definice

Získá styl buňky aktuálně použitý pro sloupec.

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

Hodnota vlastnosti

A DataGridViewCellStyle , který představuje styl buňky použitý k zobrazení sloupce.

Atributy

Poznámky

Tato vlastnost je užitečná k určení, které styly buněk se použijí pro všechny buňky ve sloupci bez ohledu na všechny styly řádků, které jsou použity také na buňky. Vlastnost sloupce InheritedStyle dědí své hodnoty z objektu DefaultCellStyleDataGridView.DefaultCellStyle a vlastnosti.

Další informace o dědičnosti stylu buněk naleznete v části Styly buněk v ovládacím prvku Windows Forms DataGridView.

Platí pro

Viz také