CaptionHelper.GetMemberCaption(IMemberInfo) Method

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

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public static string GetMemberCaption(
    IMemberInfo memberInfo
)
Public Shared Function GetMemberCaption(
    memberInfo As IMemberInfo
) As String

Parameters

Type Name Description
IMemberInfo memberInfo

An IMemberInfo object specifying member's metadata information.

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