Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CaptionHelper.GetDisplayText(Object) Method

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

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public static string GetDisplayText(
    object theObject
)

#Parameters

Name Type Description
theObject Object

An object for which a display text is generated.

#Returns

Type Description
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