Simulink.dialog.TreeControl Class
Namespace: Simulink
Control Tree control programmatically
Description
Use an instance of Simulink.dialog.TreeControl
class to
perform the following operations:
Get selected items from the tree
Set selected items in the tree
Properties
Name
— Name of the dialog control
empty (default)
Uniquely identifies the dialog control, specified as a character vector. It is a mandatory field.
Data Types: string
| character vector
Prompt
— Display text of the dialog control
empty (default)
Display text on the tree dialog control, specified as a character vector.
Data Types: string
| char
TreeItems
— Elements in the tree
empty (default)
Items shown in the tree, specified as a cell array.
Data Types: cell array
Callback
— Callback code executed on invoking dialog control
empty (default)
MATLAB® command to be executed when the dialog control is invoked, specified as character vector.
Data Types: char
| String
Row
— Indicates if dialog control is placed in a new row
current (default) | new
Indicates whether dialog control is placed on the current row or on a new row, specified as a character vector.
Data Types: char
Enabled
— Indicates if tree control is active on the mask dialog
on (default) | off
Indicates whether tree control is active on the mask dialog box, specified as logical value.
Data Types: logical
Visible
— Indicates if tree control is visible on the mask dialog
on (default) | off
Indicates whether tree control is visible or hidden on the mask dialog box specified as a logical value.
Data Types: logical
Multiselect
— Indicates if tree control is enabled for multiple selection
on (default) | off
Indicates whether tree control is enabled for multiple selection, specified as a logical value.
Data Types: logical
Tooltip
— Tooltip for the tree control
empty (default)
Tooltip for the tree control, specified as a character vector.
Data Types: char
| string
Methods
Public Methods
Version History
Introduced in R2014a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)