TreeView.Sorted 속성

정의

tree view의 트리 노드가 정렬되어 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool Sorted { bool get(); void set(bool value); };
public bool Sorted { get; set; }
[System.ComponentModel.Browsable(false)]
public bool Sorted { get; set; }
member this.Sorted : bool with get, set
[<System.ComponentModel.Browsable(false)>]
member this.Sorted : bool with get, set
Public Property Sorted As Boolean

속성 값

Boolean

tree view의 트리 노드가 정렬되어 있으면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

특성

설명

설정true되면 Sorted 개체는 TreeNode 해당 속성 값에 따라 사전순으로 Text 정렬됩니다. 정렬된 TreeView항목에 대량의 항목을 추가할 때 항상 사용하고 BeginUpdate EndUpdate 성능을 유지해야 합니다. 기존 노드의 텍스트가 변경되면 항목을 적용하기 위해 호출 Sort 해야 합니다.

참고

기본 정렬 합니다 Compare 기반 메서드는 CurrentCulture 애플리케이션에 지정 합니다. 즉, 값이 TreeNode 같은 개체는 컨트롤에 추가된 순서대로 TreeView 유지됩니다.

적용 대상