DataGridViewBand.InheritedStyle 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得當前頻段的單元樣式,並考慮樣式繼承。
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 控制項中的儲存格樣式。
適用於
另請參閱
- DataGridView
- DataGridViewRow
- DataGridViewColumn
- DataGridViewCellStyle
- Windows Forms DataGridView 控制項中的儲存格樣式