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

OptionsToolTip.TooltipFormat Property

Gets or sets the format used to generate a tooltip’s text. This property is in effect if the OptionsToolTip.Tooltip property is set to an empty string.

Namespace: DevExpress.XtraGauges.Win.Base

Assembly: DevExpress.XtraGauges.v24.2.Win.dll

NuGet Package: DevExpress.Win.Gauges

#Declaration

[DefaultValue("{1:F2}")]
[XtraSerializableProperty]
public string TooltipFormat { get; set; }

#Property Value

Type Default Description
String "{1:F2}"

A string that specifies the format to generate a tooltip’s text.

#Property Paths

You can access this nested property as listed below:

Object Type Path to TooltipFormat
BaseGaugeWin
.OptionsToolTip .TooltipFormat

#Remarks

Tooltips are enabled if the GaugeControl.ShowToolTips property is set to true.

You can use the TooltipFormat property to specify the format for generating a tooltip’s text. The format string can contain custom text and placeholders used to insert a gauge element’s name and value. The following placeholders are supported:

Placeholder

Description

{0}

Represents the name of the element being hovered over.

{1}

Represents the value/text of the current element.

Numeric values can be formatted as described in Composite Formatting.

It’s also possible to specify a tooltip’s text directly via the OptionsToolTip.Tooltip property. If any string is assigned to this property, the TooltipFormat property is ignored.

See Also