expand
트리 노드 확장
설명
예제
트리의 노드 확장하기
세 가지 수준의 노드가 있는 트리를 만듭니다. 기본적으로 노드는 축소된 상태로 표시됩니다.
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 명령 창에 입력하십시오. 웹 브라우저는 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)