語言

DataGridViewBand.InheritedStyle 屬性

定義

取得當前頻段的單元樣式,並考慮樣式繼承。

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

屬性值

A DataGridViewCellStyle 與 相關聯。DataGridViewBand 預設值為 null。

屬性

備註

這個屬性在類別中的 DataGridViewBand 實作總是回傳 null ,因為這個基底類別無法包含元素。

如需關於樣式繼承的詳細資訊,請參閱 Windows Forms DataGridView 控制項中的儲存格樣式。

適用於

另請參閱