Skip to main content
A newer version of this page is available. .

RepositoryItem.GetDisplayText(FormatInfo, Object) Method

Returns the text representation of the specified value, formatted according to the specified settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public virtual string GetDisplayText(
    FormatInfo format,
    object editValue
)

Parameters

Name Type Description
format FormatInfo

A FormatInfo object that specifies formatting settings.

editValue Object

A value to be formatted.

Returns

Type Description
String

A string that specifies the value’s formatted text representation.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetDisplayText(FormatInfo, Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also