Bagikan melalui


DataGridViewRow.InheritedStyle Properti

Definisi

Mendapatkan gaya sel yang berlaku untuk baris.

public:
 virtual property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };
public override System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStyle
Public Overrides ReadOnly Property InheritedStyle As DataGridViewCellStyle

Nilai Properti

DataGridViewCellStyle Yang menentukan informasi pemformatan dan gaya untuk sel dalam baris.

Pengecualian

Baris berada dalam DataGridView kontrol dan merupakan baris bersama.

Keterangan

Properti ini berguna untuk menentukan gaya sel mana yang diterapkan ke semua sel dalam baris terlepas dari gaya kolom apa pun yang juga diterapkan ke sel. Properti baris InheritedStyle mewarisi nilainya dari properti berikut:

Untuk informasi selengkapnya tentang pewarisan gaya sel, lihat Gaya Sel di Kontrol Windows Forms DataGridView.

Berlaku untuk

Lihat juga