Namespace: SCADtools.Revit.UI.OptionsBar
This class represents an item within the ObLabelComboBox class and has two properties: ItemTitle and ItemText.
The following example creates a list of bar types and assigns it to the ItemText property of the ObLabelComboBox object.
C#
ObservableCollection<ComboBoxItemText> comboBoxItemTexts = new ObservableCollection<ComboBoxItemText>( new List<ComboBoxItemText>() { new ComboBoxItemText () { ItemTitle = "Type : ", ItemText = "B1a" }, new ComboBoxItemText () { ItemTitle = "Type : ", ItemText = "B1b" } }); ObLabelComboBox labelComboBox = new ObLabelComboBox() { ShowLabel = false, ItemsText = comboBoxItemTexts };
If the user does not want to display text in the ItemTitle property, they can leave it unassigned or set its value to empty.
There was an error while loading. Please reload this page.