Skip to main content

NavigatorBase.TextStringFormat Property

Gets or sets the string displayed within the NavigatorBase control which identifies the current record and the total number of records.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DXCategory("Behavior")]
public virtual string TextStringFormat { get; set; }

Property Value

Type Description
String

A string displayed within the Navigator control.

Remarks

The navigator control can display a string that identifies the current record and the total number of records.

DataNavigator

Use the NavigatorBase.TextLocation property to specify the location of the text.

This string’s format is specified by the TextStringFormat property. The property’s default value is “Record {0} of {1}”. The {0} substring will be substituted with the ordinal number of the current record. The {1} subtring will be substituted with the total number of records.

Use the TextStringFormat property to modify the default string. Alternatively you can create a localizer that will provide a different value for the TextStringFormat property. See the Localizing WinForms Controls via Localizer Objects topic for how to create a custom localizer.

See Also