-
Notifications
You must be signed in to change notification settings - Fork 1
LabelComboBox Class
Mauricio Jorquera edited this page Nov 14, 2023
·
11 revisions
Namespace: SCADtools.Revit.UI
This class is used to add an element that combines a Label with a ComboBox to the options bar.
The following example creates a LabelComboBox.
C#
List<ComboBoxItemText> comboBoxItemsText = new List<ComboBoxItemText>()
{
new ComboBoxItemText() { ItemText = "8" },
new ComboBoxItemText() { ItemText = "10" },
new ComboBoxItemText() { ItemText = "12" },
new ComboBoxItemText() { ItemText = "16" }
};
LabelComboBox labelComboBox = new LabelComboBox()
{
Label = "Diameter:",
ItemsText = comboBoxItemsText,
MarginLeft = 10,
ComboBoxWidth = 52,
ControlToolTip = new ControlToolTip()
{
Title = "Bar Diameter",
Content = "Specifies the bar diameter.",
}
};
Name | Description |
---|---|
LabelComboBox() | Initializes a new instance of the LabelComboBox class. |
Name | Description |
---|---|
ComboBoxControl | Represents a native ComboBox class. |
ComboBoxWidth | Gets or sets the width of the ComboBox. |
ControlToolTip | This class implements the standard tooltip. |
ItemsText | Gets or sets a collection used to generate the content of the LabelComboBox. |
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. |
SelectedIndex | Gets or sets the index of the first item in the current selection. |