Back to Devexpress

CaptionHelper.GetDisplayText(Object) Method

expressappframework-devexpress-dot-expressapp-dot-utils-dot-captionhelper-dot-getdisplaytext-x28-system-dot-object-x29.md

latest1.8 KB
Original Source

CaptionHelper.GetDisplayText(Object) Method

Returns the value of the specified object’s default member.

Namespace : DevExpress.ExpressApp.Utils

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public static string GetDisplayText(
    object theObject
)
vb
Public Shared Function GetDisplayText(
    theObject As Object
) As String

Parameters

NameTypeDescription
theObjectObject

An object for which a display text is generated.

|

Returns

TypeDescription
String

A string that is the value of the default member.

|

Remarks

To generate a display text for an object, the value of its default member (see ITypeInfo.DefaultMember) is retrieved. This value is formatted according to the format specified by the IModelClass.ObjectCaptionFormat property of the Application Model’s BOModel | <Class> node.

See Also

CaptionHelper Class

CaptionHelper Members

DevExpress.ExpressApp.Utils Namespace