Back to Devexpress

BarManager.GetString(BarString) Method

windowsforms-devexpress-dot-xtrabars-dot-barmanager-dot-getstring-x28-devexpress-dot-xtrabars-dot-localization-dot-barstring-x29.md

latest2.0 KB
Original Source

BarManager.GetString(BarString) Method

Returns a localized string for the given string identifier.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual string GetString(
    BarString str
)
vb
Public Overridable Function GetString(
    str As BarString
) As String

Parameters

NameTypeDescription
strBarString

A BarString value identifying the string to return.

|

Returns

TypeDescription
String

A string corresponding to the specified identifier.

|

Remarks

XtraBars supports localization, i.e. you can substitute strings displayed within default context menus and dialog boxes with your own equivalents (for instance, in your native language). Items that can be localized are enumerated by the BarString enum. Before each item is displayed onscreen, the BarManager.GetString method is called in order to get the string for that item.

For more information on how XtraBars can be localized see the Localization topic.

See Also

Localization

BarManager Class

BarManager Members

DevExpress.XtraBars Namespace