TreeView

public class TreeView : ControlView

Undocumented

Hierarchy

Events

Data/display management

  • Repopulates the tree view’s items.

    Declaration

    Swift

    public func reloadData()
  • Requests that the TreeView collapse all currently expanded items.

    Declaration

    Swift

    public func collapseAll()
  • Requests that the TreeView collapse a given item index.

    Declaration

    Swift

    public func collapse(index: ItemIndex)
  • Requests that the TreeView collapse a given item index.

    Declaration

    Swift

    public func expand(index: ItemIndex)
  • Selects the given items on the interface alongside any currently selected items, triggering a didChangeSelection event in the process.

    Declaration

    Swift

    public func addSelection(_ items: Set<ItemIndex>)
  • Selects the given items on the interface, deselecting any currently selected items, triggering a didChangeSelection event in the process.

    Declaration

    Swift

    public func setSelection(_ items: Set<ItemIndex>)
  • If any items are selected in this tree view, clears their selection, triggering a didChangeSelection event in the process.

    Declaration

    Swift

    public func clearSelection()
  • Specifies the hierarchical index for a sub-tree.

    See more

    Declaration

    Swift

    public struct HierarchyIndex : Hashable, Comparable
  • Undocumented

    See more

    Declaration

    Swift

    public struct ItemIndex : Hashable, Comparable
  • Undocumented

    See more

    Declaration

    Swift

    struct VisualStyle