Share via


ButtonColumn.FormatDataTextValue(Object) 方法

定義

將指定的值轉換為 DataTextFormatString 屬性所表示的格式。

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

要格式化的值。

傳回

dataTextValue,轉換為 DataTextFormatString 所表示的格式。

備註

FormatDataTextValue使用 方法,將指定的值轉換成 屬性所 DataTextFormatString 指示的格式。

注意

如果未 DataTextFormatString 設定 屬性,方法 FormatDataTextValue 會傳回與值相等的字串。

適用於

另請參閱