Back to Devexpress

EditorButton.ToolTip Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-editorbutton-689c4290.md

latest3.6 KB
Original Source

EditorButton.ToolTip Property

Gets or sets the button’s regular tooltip.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
[DXCategory("ToolTip")]
public virtual string ToolTip { get; set; }
vb
<DefaultValue("")>
<DXCategory("ToolTip")>
Public Overridable Property ToolTip As String

Property Value

TypeDefaultDescription
StringString.Empty

A string which specifies the button’s regular tooltip.

|

Remarks

Editor buttons support regular tooltips and SuperToolTip objects. The ToolTip property allows you to specify a regular tooltip. The EditorButton.SuperTip property can be used to assign a SuperToolTip object to the button.

The editor’s BaseControl.ToolTipController property determines the ToolTipController which manages tooltips for the control. The type of tooltips displayed by controls is determined by the ToolTipController.ToolTipType property.

See Hints and Tooltips for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ToolTip property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-tab-control-custom-header-buttons/CS/XtraTabControl_CustomButtons/Form1.cs#L15

csharp
InitializeComponent();
xtraTabControl1.CustomHeaderButtons[0].ToolTip = "Add Image...";
xtraTabControl1.CustomHeaderButtons[1].ToolTip = "Remove Image";

winforms-tab-control-custom-header-buttons/VB/XtraTabControl_CustomButtons/Form1.vb#L18

vb
InitializeComponent()
xtraTabControl1.CustomHeaderButtons(0).ToolTip = "Add Image..."
xtraTabControl1.CustomHeaderButtons(1).ToolTip = "Remove Image"

See Also

SuperTip

Hints and Tooltips

EditorButton Class

EditorButton Members

DevExpress.XtraEditors.Controls Namespace