Skip to content

ControlToolTip Class

Mauricio Jorquera edited this page Nov 13, 2023 · 16 revisions

This class implements the standard tooltip.

Example

The following example creates a LabelCheckBox.

C#

SCADtools.Revit.UI.Button button = new SCADtools.Revit.UI.Button()
{
    Label = "...",
    MarginLeft = 6,
    ControlToolTip = new SCADtools.Revit.UI.ToolTip()
    {
        ToolTipTitle = "Rebar Shape Browser",
        Description = "Launch/Close Rebar Shape Browser."
    }
};

Constructors

Name Description
ControlToolTip() Initializes a new instance of the ControlToolTip class.

Properties

Name Description
ToolTipTitle Gets or sets the description title that appears as a ToolTip for the item.
Description Gets or sets the description that appears as a ToolTip for the item.
ExpandedContent Gets or sets the second-level content for the tooltip.
ExpandedImage Gets or sets the image to be displayed below the second-level content.

Syntax

C#

public ControlToolTip ControlToolTip { get; set; }

Remarks

This is a simple data class to store the tooltip information. The default value is null.

Clone this wiki locally