Skip to content

ObButton Class

Mauricio Jorquera edited this page Feb 10, 2026 · 6 revisions

Description

Namespace: SCADtools.Revit.UI.OptionsBar

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

Example

The following example creates a Button.

C#

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

Constructors

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

Properties

Name Description
ObExpandedToolTip 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