MobileForms Toolkit Documentation

ItemTextBox.DisplayFormat Property

Gets or sets the display format.

public string DisplayFormat {get; set;}

Property Value

String that specifies the display format.

Remarks

If the display format is set, it is used to format the Value to display, when the item is not focused. This is especially usefull when displaying the currency. Format string used is provided to the String.Format method. The "'prefix'{0:'format'}'suffix'" pattern is accepted as a valid format string. If no display format is specified, the Text property is displayed.

Example

The following table demonstrates the usable format strings:

"{0:P}""${0:0.00}""0.00"
Format stringDescription
""Display format not set, the Text property is displayed.

See Also

ItemTextBox Class | Resco.Controls.DetailView Namespace | Format