ドキュメント

Unity Engine

Unity Engine

SetExpanded

Set a single TreeViewItem to be expanded or collapsed.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

SetExpanded(int, bool)

Set a single TreeViewItem to be expanded or collapsed.
public bool SetExpanded(int id, bool expanded)

Parameters

id

TreeViewItem ID.

expanded

True expands item. False collapses item.

Returns

Type

Description

boolTrue if item changed expanded state, false if item already had the
expanded
state.

SetExpanded(IList<int>)

Set the current expanded TreeViewItems of the TreeView. This will overwrite the previous expanded state.
public void SetExpanded(IList<int> ids)

Parameters

List of item IDs that should be expanded.