Condividi tramite


ButtonField.FormatDataTextValue(Object) Metodo

Definizione

Formatta il valore del campo specificato per una cella nell'oggetto 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

Parametri

dataTextValue
Object

Valore del campo da formattare.

Restituisce

Valore del campo convertito nel formato specificato dalla DataTextFormatString proprietà .

Commenti

Il FormatDataTextValue metodo è un metodo helper utilizzato per trasformare un valore di campo nel formato specificato dalla DataTextFormatString proprietà .

Note per gli eredi

Quando si estende la ButtonField classe, è possibile eseguire l'override del FormatDataTextValue(Object) metodo per eseguire una routine di formattazione personalizzata.

Si applica a

Vedi anche