Skip to content

Button Class

Mauricio Jorquera edited this page Nov 14, 2023 · 4 revisions

Description

Namespace: SCADtools.Revit.UI

This class is used to add a Button to the options bar.

Example

The following example creates a Button.

C#

Button button = new Button()
{
    Label = "...",
    MarginLeft = 6,
    ControlToolTip = new ControlToolTip()
    {
        Title = "Rebar Shape Browser",
        Content = "Launch/Close Rebar Shape Browser."
    }
};

Constructors

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

Properties

Name Description
ButtonControl Represents a native Button class.
ControlToolTip This class implements the standard tooltip.
Label The user-visible text on the Button.
MarginLeft Gets or sets the separation of the Control with some control that is to its left.
Clone this wiki locally