CaptionHelper.GetMemberCaption(ITypeInfo, String) Method

Returns the display caption corresponding to a business class' property.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v18.1.dll

Declaration

public static string GetMemberCaption(
    ITypeInfo typeInfo,
    string memberName
)
Public Shared Function GetMemberCaption(
    typeInfo As ITypeInfo,
    memberName As String
) As String

Parameters

Type Name Description
ITypeInfo typeInfo

An ITypeInfo object supplying metadata on the type of the business class that declares the required property.

String memberName

A string specifying the name of the required property.

Returns

Type Description
String

A string representing the display caption corresponding to the specified property.

For properties of business classes used in an XAF application, this method returns the IModelCommonMemberViewItem.Caption property value of the corresponding Member node. For all the other properties, the GetMemberCaption method returns the first part of the specified property name.

See Also