CheckBoxField.DataFormatString 屬性

定義

取得或設定字串,指定欄位值的顯示格式。 CheckBoxField 類別不支援這個屬性。

public:
 virtual property System::String ^ DataFormatString { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public override string DataFormatString { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.DataFormatString : string with get, set
Public Overrides Property DataFormatString As String

屬性值

String

指定欄位值顯示格式的格式化字串。 不支援這個屬性,而且會擲回 NotSupportedException

屬性

例外狀況

已嘗試讀取或設定此屬性的值。

備註

屬性 DataFormatString 繼承自 BoundField 類別,但不適用於 CheckBoxField 類別。 任何嘗試存取此屬性的值都會擲 System.NotSupportedException 回例外狀況。

適用於

另請參閱