Skip to main content
A newer version of this page is available. .

RepositoryItemRangeTrackBar.ValueToolTipFormatString Property

Gets or sets the string used to format the tooltip displaying the minimum and maximum values of the current range.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DXCategory("Appearance")]
public string ValueToolTipFormatString { get; set; }

Property Value

Type Description
String

A string value used to format the tooltip displaying the minimum and maximum values of the current range.

Remarks

If the RepositoryItemTrackBar.ShowValueToolTip option is enabled, the RangeTrackBarControl displays a tooltip with the minimum and maximum values of the current range. By default, the tooltip uses the following string “Min={0},Max={1}”, where {0} and {1} are placeholders for the minimum and maximum value, respectively. You can use the ValueToolTipFormatString property to provide a custom format string. See an example below.


// Use the {0} and {1} placeholders for the minimum and maximum value, respectively.
rangeTrackBarControl1.Properties.ValueToolTipFormatString = "from {0} to {1}";

You can also handle the RepositoryItemTrackBar.BeforeShowValueToolTip event to customize the tooltip.

See Also