Skip to content

ObLabelTextBox Class

Mauricio Jorquera edited this page Feb 10, 2026 · 1 revision

Description

Namespace: SCADtools.Revit.UI.OptionsBar

This class is used to add an element that combines a Label with a TextBox to the options bar.

Example

The following example creates a ObLabelTextBox.

C#

ObLabelTextBox labelTextBox = new ObLabelTextBox("Spacing", "20")
{
    ControlWidth = 52,
    MarginLeft = 10
};

Constructors

Name Description
ObLabelTextBox() Initializes a new instance of the ObLabelTextBox class.
ObLabelTextBox(string label) Initializes a new instance of the ObLabelTextBox class.
ObLabelTextBox(string label, string text) Initializes a new instance of the ObLabelTextBox class.

Properties

Name Description
ControlWidth Gets or sets the width of the TextBox.
ObExpandedToolTip This class implements the standard tooltip.
Label The user-visible text on the Label.
MarginLeft Gets or sets the separation of the Control with some control that is to its left.
ShowLabel Gets or sets the value indicating whether the label text is visible.
Text Gets or sets the text contents of the TextBox.

Clone this wiki locally