語言

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

欄位值到格式化。

傳回

欄位值會轉換成屬性指定的 DataTextFormatString 格式。

備註

此 FormatDataTextValue 方法是一種輔助方法,用於將欄位值轉換成屬性指定的 DataTextFormatString 格式。

給繼承者的注意事項

擴充類別時 ButtonField ,你可以覆寫該 FormatDataTextValue(Object) 方法,執行自訂格式化例程。

適用於

另請參閱