Share via


ButtonField.FormatDataTextValue(Object) 方法

定義

格式化 ButtonField 物件中儲存格的指定欄位值。

protected:
 virtual System::String ^ FormatDataTextValue(System::Object ^ dataTextValue);
protected virtual string FormatDataTextValue (object dataTextValue);
abstract member FormatDataTextValue : obj -> string
override this.FormatDataTextValue : obj -> string
Protected Overridable Function FormatDataTextValue (dataTextValue As Object) As String

參數

dataTextValue
Object

要格式化的欄位值。

傳回

String

欄位值,已轉換為 DataTextFormatString 屬性所指定的格式。

備註

方法 FormatDataTextValue 是協助程式方法,可用來將域值轉換成 屬性所 DataTextFormatString 指定的格式。

給繼承者的注意事項

擴充 ButtonField 類別時,您可以覆寫 FormatDataTextValue(Object) 方法來執行自訂格式設定常式。

適用於

另請參閱