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.ConvertCompoundName(String, CompoundNameConvertStyle) Method

Converts a compound name according to the specified CompoundNameConvertStyle mode.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public static string ConvertCompoundName(
    string name,
    CompoundNameConvertStyle style
)

#Parameters

Name Type Description
name String

A string representing the compound name that will be converted.

style CompoundNameConvertStyle

A CompoundNameConvertStyle enumeration value specifying how the compound name will be processed.

#Returns

Type Description
String

A string representing the processed compound name.

#Remarks

Compound names consist from several capitalized words joined together. Examples of such names are BusinessClass, RestoreDefaultSettings, MyApplicationModule and so on. The ConvertCompoundName method is used to split these names into several words, according to the specified CompoundNameConvertStyle mode.

The ConvertCompoundName method raises the CaptionHelper.CustomizeConvertCompoundName event, which allows you to manually process a compound name that’s being converted.

See Also