기술 자료

Unity Engine

Unity Engine

SetExpanded

Set a single TreeViewItem to be expanded or collapsed.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

SetExpanded(T, bool)

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

Parameters

id

T
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<T>)

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

Parameters

List of item IDs that should be expanded.