ドキュメンテーションヘルプ センター
最新のリリースでは、このページがまだ翻訳されていません。 このページの最新版は英語でご覧になれます。
ツリー ノードを展開
expand(parent)
expand(parent,'all')
expand(parent) は、ツリーまたはツリー ノードのノードを展開します。parent が Tree オブジェクトの場合、最上位のノードは展開された状態で表示されます。parent が TreeNode オブジェクトの場合、そのノードは展開された状態で表示されます。
parent
Tree
TreeNode
例
expand(parent,'all') はツリーまたはツリー ノードのすべてのノードを展開します。
すべて折りたたむ
3 つのレベルのノードがあるツリーを作成します。既定では、ノードは折りたたまれた状態で表示されます。
f = uifigure; tree = uitree(f,'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')
親ツリーまたはノード。Tree オブジェクトまたは TreeNode オブジェクトとして指定します。
appdesigner | collapse | move | scroll | uitree | uitreenode
appdesigner
collapse
move
scroll
uitree
uitreenode
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office