Skip to content

LabelTextBox Class

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

Description

Namespace: SCADtools.Revit.UI

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 LabelTextBox.

C#

LabelTextBox labelTextBox = new LabelTextBox()
{
    Label = "Spacing:",
    Text = "20",
    TextBoxWidth = 52,
    MarginLeft = 10
};

Constructors

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

Properties

Name Description
TextBoxControl Represents a native TextBox class.
TextBoxWidth Gets or sets the width of the TextBox.
ControlToolTip 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.