Skip to main content

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

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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