expand
ツリー ノードを展開
説明
例
ツリーのノードを展開
3 つのレベルのノードがあるツリーを作成します。既定では、ノードは折りたたまれた状態で表示されます。
fig = uifigure; tree = uitree(fig,'Position',[20 20 175 100]); % First level nodes category1 = uitreenode(tree,'Text','Runners'); category2 = uitreenode(tree,'Text','Cyclists'); % Second level nodes equip1 = uitreenode(category1,'Text','Equipment'); equip2 = uitreenode(category2,'Text','Equipment'); % Third level nodes shoes = uitreenode(equip1,'Text','Running Shoes'); bike = uitreenode(equip2,'Text','Bicycle'); helmet = uitreenode(equip2,'Text','Helmet');
最上位のノードを展開します。
expand(tree)
ツリー内のすべてのノードを展開します。
expand(tree,'all')
入力引数
parent
— 親ツリーまたはノード
Tree
オブジェクト | TreeNode
オブジェクト
親ツリーまたはノード。Tree
オブジェクトまたは TreeNode
オブジェクトとして指定します。
バージョン履歴
R2017b で導入
参考
collapse
| move
| scroll
| uitree
| uitreenode
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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)