TreeView Class

Definition

Line 188 of System.Windows/TreeView.cm

Inheritance

Classes

private class UpdateGuard

Constructors & Destructor

public TreeView(TreeViewCreateParams& createParams)
public TreeView(const Font& normalNodeFont_, const Font& activeNodeFont_, const Color& backgroundColor, const Color& stateIndicatorColor_, const Color& nodeSelectedColor_, const Color& textColor_, const Point& location, const Size& size, Dock dock, Anchors anchors)
public TreeView(const Point& location, const Size& size, Dock dock, Anchors anchors)
public ~TreeView()

Member Functions

public inline nothrow int AnimationMs() const
internal inline nothrow bool Changed() const
public void DeselectNode()
internal void DoAnimation(State targetState, const Rect& stateRect)
public void EnsureNodeVisible(TreeViewNode* node)
public inline nothrow const StringFormat& Format() const
public inline nothrow const Font& GetActiveNodeFont() const
public inline nothrow ImageList* GetImageList() const
public inline nothrow const Font& GetNormalNodeFont() const
public List<TreeViewNode*> GetVisibleNodes() const
public List<TreeViewNode*> GetVisibleNodes(int level) const
public void HideToolTipWindow()
private void MakeStateIndicatorBitmaps(Graphics& graphics)
private void Measure(Graphics& graphics)
internal void NodeClick(const Point& location, MouseButtons buttons, TreeViewNode* node)
public nothrow Event<TreeViewNodeMouseClickEventHandler, TreeViewNodeMouseClickEventArgs>& NodeClickEvent()
internal void NodeCollapsed(TreeViewNode* node)
public const Bitmap& NodeCollapsedBitmap() const
public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeCollapsedEvent()
internal void NodeDoubleClick(const Point& location, MouseButtons buttons, TreeViewNode* node)
public nothrow Event<TreeViewNodeMouseClickEventHandler, TreeViewNodeMouseClickEventArgs>& NodeDoubleClickEvent()
internal void NodeEnter(TreeViewNode* node)
public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeEnterEvent()
internal void NodeExpanded(TreeViewNode* node)
public const Bitmap& NodeExpandedBitmap() const
public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeExpandedEvent()
internal void NodeHovered(TreeViewNode* node)
public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeHoveredEvent()
public inline nothrow const Padding& NodeImagePadding() const
public inline nothrow float NodeIndentPercent() const
internal void NodeLeave(TreeViewNode* node)
public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeLeaveEvent()
internal void NodeSelected(TreeViewNode* node)
public inline nothrow const SolidBrush& NodeSelectedBrush() const
public inline nothrow const Color& NodeSelectedColor() const
public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeSelectedEvent()
public inline nothrow float NodeTextIndentPercent() const
public nothrow bool NodeVisible(TreeViewNode* node) const
protected override void OnMouseDoubleClick(MouseEventArgs& args)
protected override void OnMouseDown(MouseEventArgs& args)
protected override void OnMouseEnter()
protected override void OnMouseHover(MouseEventArgs& args)
protected override void OnMouseLeave()
protected override void OnMouseMove(MouseEventArgs& args)
protected override void OnMouseUp(MouseEventArgs& args)
protected virtual void OnNodeClick(TreeViewNodeMouseClickEventArgs& args)
protected virtual void OnNodeCollapsed(TreeViewNodeEventArgs& args)
protected virtual void OnNodeDoubleClick(TreeViewNodeMouseClickEventArgs& args)
protected virtual void OnNodeEnter(TreeViewNodeEventArgs& args)
protected virtual void OnNodeExpanded(TreeViewNodeEventArgs& args)
protected virtual void OnNodeHovered(TreeViewNodeEventArgs& args)
protected virtual void OnNodeLeave(TreeViewNodeEventArgs& args)
protected virtual void OnNodeSelected(TreeViewNodeEventArgs& args)
protected override void OnPaint(PaintEventArgs& args)
public override void PrintWindowTree(int level)
public nothrow TreeViewNode* ReleaseRoot()
private nothrow void ResetBitmapIndex()
private inline nothrow void ResetChanged()
public nothrow void ResetRoot(TreeViewNode* root_)
private inline nothrow void ResetToolTipWindowAdded()
private inline nothrow void ResetTreeViewNodeChanged()
private inline nothrow void ResetTreeViewNodeStateChanged()
public inline nothrow TreeViewNode* Root() const
public nothrow TreeViewNode* SelectedNode() const
public nothrow void SetActiveNodeFont(const Font& activeNodeFont_)
public nothrow void SetAnimationMs(int animationMs_)
private nothrow void SetBitmapIndex(long bitmapIndex_)
public inline nothrow void SetChanged()
public nothrow void SetImageList(ImageList* imageList_)
public nothrow void SetNodeSelectedColor(const Color& nodeSelectedColor_)
public nothrow void SetNormalNodeFont(const Font& normalNodeFont_)
public nothrow void SetRoot(TreeViewNode* root_)
internal nothrow void SetSelectedNode(TreeViewNode* node)
public void SetStateIndicatorColor(const Color& stateIndicatorColor_)
public inline nothrow void SetStateIndicatorPercentage(float stateIndicatorPercentage_)
public void SetTextColor(const Color& textColor_)
private inline nothrow void SetToolTipWindowAdded()
internal nothrow void SetTrackedNode(TreeViewNode* trackedNode_)
internal inline nothrow void SetTreeViewNodeChanged()
internal inline nothrow void SetTreeViewNodeStateChanged()
public void ShowToolTipWindow(const String<char>& toolTipText, TreeViewNode* node)
public inline nothrow const Color& StateIndicatorColor() const
public inline nothrow float StateIndicatorHeight() const
public inline nothrow float StateIndicatorPercentage() const
public inline nothrow const SolidBrush& TextBrush() const
public inline nothrow const Color& TextColor() const
public inline nothrow float TextHeight() const
private inline nothrow bool ToolTipWindowAdded() const
internal inline nothrow TreeViewNode* TrackedNode() const
internal inline nothrow bool TreeViewNodeChanged() const
internal inline nothrow bool TreeViewNodeStateChanged() const

Enumerated Types

private enum Flags

Member Variables

private Font activeNodeFont
private int animationMs
private long bitmapIndex
private Flags flags
private StringFormat format
private ImageList* imageList
private Event<TreeViewNodeMouseClickEventHandler, TreeViewNodeMouseClickEventArgs> nodeClickEvent
private Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs> nodeCollapsedEvent
private Event<TreeViewNodeMouseClickEventHandler, TreeViewNodeMouseClickEventArgs> nodeDoubleClickEvent
private Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs> nodeEnterEvent
private Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs> nodeExpandedEvent
private Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs> nodeHoveredEvent
private Padding nodeImagePadding
private float nodeIndentPercent
private Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs> nodeLeaveEvent
private SolidBrush nodeSelectedBrush
private Color nodeSelectedColor
private Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs> nodeSelectedEvent
private float nodeTextIndentPercent
private Font normalNodeFont
private UniquePtr<TreeViewNode> root
private TreeViewNode* selectedNode
private List<Bitmap> stateIndicatorBitmaps
private Color stateIndicatorColor
private float stateIndicatorHeight
private float stateIndicatorPercentage
private SolidBrush textBrush
private Color textColor
private float textHeight
private ToolTip* toolTipWindow
private TreeViewNode* trackedNode

Constructor& Destructor Details

TreeView Constructor

public TreeView(TreeViewCreateParams& createParams)

Definition
Line 216 of System.Windows/TreeView.cm


TreeView Constructor

public TreeView(const Font& normalNodeFont_, const Font& activeNodeFont_, const Color& backgroundColor, const Color& stateIndicatorColor_, const Color& nodeSelectedColor_, const Color& textColor_, const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 194 of System.Windows/TreeView.cm


TreeView Constructor

public TreeView(const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 211 of System.Windows/TreeView.cm


~TreeView Destructor

public ~TreeView()

Definition
Line 242 of System.Windows/TreeView.cm


Member Function Details

AnimationMs Member Function

public inline nothrow int AnimationMs()

Definition
Line 499 of System.Windows/TreeView.cm


Changed Member Function

internal inline nothrow bool Changed()

Definition
Line 664 of System.Windows/TreeView.cm


DeselectNode Member Function

public void DeselectNode()

Definition
Line 836 of System.Windows/TreeView.cm


DoAnimation Member Function

internal void DoAnimation(State targetState, const Rect& stateRect)

Definition
Line 757 of System.Windows/TreeView.cm


EnsureNodeVisible Member Function

public void EnsureNodeVisible(TreeViewNode* node)

Definition
Line 263 of System.Windows/TreeView.cm


Format Member Function

public inline nothrow const StringFormat& Format()

Definition
Line 816 of System.Windows/TreeView.cm


GetActiveNodeFont Member Function

public inline nothrow const Font& GetActiveNodeFont()

Definition
Line 418 of System.Windows/TreeView.cm


GetImageList Member Function

public inline nothrow ImageList* GetImageList()

Definition
Line 936 of System.Windows/TreeView.cm


GetNormalNodeFont Member Function

public inline nothrow const Font& GetNormalNodeFont()

Definition
Line 414 of System.Windows/TreeView.cm


GetVisibleNodes Member Function

public List<TreeViewNode*> GetVisibleNodes()

Definition
Line 307 of System.Windows/TreeView.cm


GetVisibleNodes Member Function

public List<TreeViewNode*> GetVisibleNodes(int level)

Definition
Line 301 of System.Windows/TreeView.cm


HideToolTipWindow Member Function

public void HideToolTipWindow()

Definition
Line 543 of System.Windows/TreeView.cm


MakeStateIndicatorBitmaps Member Function

private void MakeStateIndicatorBitmaps(Graphics& graphics)

Definition
Line 722 of System.Windows/TreeView.cm


Measure Member Function

private void Measure(Graphics& graphics)

Definition
Line 712 of System.Windows/TreeView.cm


NodeClick Member Function

internal void NodeClick(const Point& location, MouseButtons buttons, TreeViewNode* node)

Definition
Line 868 of System.Windows/TreeView.cm


NodeClickEvent Member Function

public nothrow Event<TreeViewNodeMouseClickEventHandler, TreeViewNodeMouseClickEventArgs>& NodeClickEvent()

Definition
Line 547 of System.Windows/TreeView.cm


NodeCollapsed Member Function

internal void NodeCollapsed(TreeViewNode* node)

Definition
Line 926 of System.Windows/TreeView.cm


NodeCollapsedBitmap Member Function

public const Bitmap& NodeCollapsedBitmap()

Definition
Line 808 of System.Windows/TreeView.cm


NodeCollapsedEvent Member Function

public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeCollapsedEvent()

Definition
Line 571 of System.Windows/TreeView.cm


NodeDoubleClick Member Function

internal void NodeDoubleClick(const Point& location, MouseButtons buttons, TreeViewNode* node)

Definition
Line 877 of System.Windows/TreeView.cm


NodeDoubleClickEvent Member Function

public nothrow Event<TreeViewNodeMouseClickEventHandler, TreeViewNodeMouseClickEventArgs>& NodeDoubleClickEvent()

Definition
Line 551 of System.Windows/TreeView.cm


NodeEnter Member Function

internal void NodeEnter(TreeViewNode* node)

Definition
Line 886 of System.Windows/TreeView.cm


NodeEnterEvent Member Function

public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeEnterEvent()

Definition
Line 555 of System.Windows/TreeView.cm


NodeExpanded Member Function

internal void NodeExpanded(TreeViewNode* node)

Definition
Line 913 of System.Windows/TreeView.cm


NodeExpandedBitmap Member Function

public const Bitmap& NodeExpandedBitmap()

Definition
Line 800 of System.Windows/TreeView.cm


NodeExpandedEvent Member Function

public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeExpandedEvent()

Definition
Line 567 of System.Windows/TreeView.cm


NodeHovered Member Function

internal void NodeHovered(TreeViewNode* node)

Definition
Line 931 of System.Windows/TreeView.cm


NodeHoveredEvent Member Function

public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeHoveredEvent()

Definition
Line 575 of System.Windows/TreeView.cm


NodeImagePadding Member Function

public inline nothrow const Padding& NodeImagePadding()

Definition
Line 860 of System.Windows/TreeView.cm


NodeIndentPercent Member Function

public inline nothrow float NodeIndentPercent()

Definition
Line 491 of System.Windows/TreeView.cm


NodeLeave Member Function

internal void NodeLeave(TreeViewNode* node)

Definition
Line 895 of System.Windows/TreeView.cm


NodeLeaveEvent Member Function

public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeLeaveEvent()

Definition
Line 559 of System.Windows/TreeView.cm


NodeSelected Member Function

internal void NodeSelected(TreeViewNode* node)

Definition
Line 904 of System.Windows/TreeView.cm


NodeSelectedBrush Member Function

public inline nothrow const SolidBrush& NodeSelectedBrush()

Definition
Line 436 of System.Windows/TreeView.cm


NodeSelectedColor Member Function

public inline nothrow const Color& NodeSelectedColor()

Definition
Line 466 of System.Windows/TreeView.cm


NodeSelectedEvent Member Function

public nothrow Event<TreeViewNodeEventHandler, TreeViewNodeEventArgs>& NodeSelectedEvent()

Definition
Line 563 of System.Windows/TreeView.cm


NodeTextIndentPercent Member Function

public inline nothrow float NodeTextIndentPercent()

Definition
Line 495 of System.Windows/TreeView.cm


NodeVisible Member Function

public nothrow bool NodeVisible(TreeViewNode* node)

Definition
Line 287 of System.Windows/TreeView.cm


OnMouseDoubleClick Member Function

protected override void OnMouseDoubleClick(MouseEventArgs& args)

Definition
Line 602 of System.Windows/TreeView.cm


OnMouseDown Member Function

protected override void OnMouseDown(MouseEventArgs& args)

Definition
Line 579 of System.Windows/TreeView.cm


OnMouseEnter Member Function

protected override void OnMouseEnter()

Definition
Line 616 of System.Windows/TreeView.cm


OnMouseHover Member Function

protected override void OnMouseHover(MouseEventArgs& args)

Definition
Line 655 of System.Windows/TreeView.cm


OnMouseLeave Member Function

protected override void OnMouseLeave()

Definition
Line 642 of System.Windows/TreeView.cm


OnMouseMove Member Function

protected override void OnMouseMove(MouseEventArgs& args)

Definition
Line 621 of System.Windows/TreeView.cm


OnMouseUp Member Function

protected override void OnMouseUp(MouseEventArgs& args)

Definition
Line 593 of System.Windows/TreeView.cm


OnNodeClick Member Function

protected virtual void OnNodeClick(TreeViewNodeMouseClickEventArgs& args)

Definition
Line 864 of System.Windows/TreeView.cm


OnNodeCollapsed Member Function

protected virtual void OnNodeCollapsed(TreeViewNodeEventArgs& args)

Definition
Line 918 of System.Windows/TreeView.cm


OnNodeDoubleClick Member Function

protected virtual void OnNodeDoubleClick(TreeViewNodeMouseClickEventArgs& args)

Definition
Line 873 of System.Windows/TreeView.cm


OnNodeEnter Member Function

protected virtual void OnNodeEnter(TreeViewNodeEventArgs& args)

Definition
Line 882 of System.Windows/TreeView.cm


OnNodeExpanded Member Function

protected virtual void OnNodeExpanded(TreeViewNodeEventArgs& args)

Definition
Line 909 of System.Windows/TreeView.cm


OnNodeHovered Member Function

protected virtual void OnNodeHovered(TreeViewNodeEventArgs& args)

Definition
Line 922 of System.Windows/TreeView.cm


OnNodeLeave Member Function

protected virtual void OnNodeLeave(TreeViewNodeEventArgs& args)

Definition
Line 891 of System.Windows/TreeView.cm


OnNodeSelected Member Function

protected virtual void OnNodeSelected(TreeViewNodeEventArgs& args)

Definition
Line 900 of System.Windows/TreeView.cm


OnPaint Member Function

protected override void OnPaint(PaintEventArgs& args)

Definition
Line 311 of System.Windows/TreeView.cm


PrintWindowTree Member Function

public override void PrintWindowTree(int level)

Definition
Line 255 of System.Windows/TreeView.cm


ReleaseRoot Member Function

public nothrow TreeViewNode* ReleaseRoot()

Definition
Line 388 of System.Windows/TreeView.cm


ResetBitmapIndex Member Function

private nothrow void ResetBitmapIndex()

Definition
Line 796 of System.Windows/TreeView.cm


ResetChanged Member Function

private inline nothrow void ResetChanged()

Definition
Line 672 of System.Windows/TreeView.cm


ResetRoot Member Function

public nothrow void ResetRoot(TreeViewNode* root_)

Definition
Line 392 of System.Windows/TreeView.cm


ResetToolTipWindowAdded Member Function

private inline nothrow void ResetToolTipWindowAdded()

Definition
Line 708 of System.Windows/TreeView.cm


ResetTreeViewNodeChanged Member Function

private inline nothrow void ResetTreeViewNodeChanged()

Definition
Line 684 of System.Windows/TreeView.cm


ResetTreeViewNodeStateChanged Member Function

private inline nothrow void ResetTreeViewNodeStateChanged()

Definition
Line 692 of System.Windows/TreeView.cm


Root Member Function

public inline nothrow TreeViewNode* Root()

Definition
Line 384 of System.Windows/TreeView.cm


SelectedNode Member Function

public nothrow TreeViewNode* SelectedNode()

Definition
Line 832 of System.Windows/TreeView.cm


SetActiveNodeFont Member Function

public nothrow void SetActiveNodeFont(const Font& activeNodeFont_)

Definition
Line 427 of System.Windows/TreeView.cm


SetAnimationMs Member Function

public nothrow void SetAnimationMs(int animationMs_)

Definition
Line 503 of System.Windows/TreeView.cm


SetBitmapIndex Member Function

private nothrow void SetBitmapIndex(long bitmapIndex_)

Definition
Line 792 of System.Windows/TreeView.cm


SetChanged Member Function

public inline nothrow void SetChanged()

Definition
Line 668 of System.Windows/TreeView.cm


SetImageList Member Function

public nothrow void SetImageList(ImageList* imageList_)

Definition
Line 940 of System.Windows/TreeView.cm


SetNodeSelectedColor Member Function

public nothrow void SetNodeSelectedColor(const Color& nodeSelectedColor_)

Definition
Line 470 of System.Windows/TreeView.cm


SetNormalNodeFont Member Function

public nothrow void SetNormalNodeFont(const Font& normalNodeFont_)

Definition
Line 422 of System.Windows/TreeView.cm


SetRoot Member Function

public nothrow void SetRoot(TreeViewNode* root_)

Definition
Line 396 of System.Windows/TreeView.cm


SetSelectedNode Member Function

internal nothrow void SetSelectedNode(TreeViewNode* node)

Definition
Line 820 of System.Windows/TreeView.cm


SetStateIndicatorColor Member Function

public void SetStateIndicatorColor(const Color& stateIndicatorColor_)

Definition
Line 461 of System.Windows/TreeView.cm


SetStateIndicatorPercentage Member Function

public inline nothrow void SetStateIndicatorPercentage(float stateIndicatorPercentage_)

Definition
Line 448 of System.Windows/TreeView.cm


SetTextColor Member Function

public void SetTextColor(const Color& textColor_)

Definition
Line 482 of System.Windows/TreeView.cm


SetToolTipWindowAdded Member Function

private inline nothrow void SetToolTipWindowAdded()

Definition
Line 704 of System.Windows/TreeView.cm


SetTrackedNode Member Function

internal nothrow void SetTrackedNode(TreeViewNode* trackedNode_)

Definition
Line 856 of System.Windows/TreeView.cm


SetTreeViewNodeChanged Member Function

internal inline nothrow void SetTreeViewNodeChanged()

Definition
Line 680 of System.Windows/TreeView.cm


SetTreeViewNodeStateChanged Member Function

internal inline nothrow void SetTreeViewNodeStateChanged()

Definition
Line 696 of System.Windows/TreeView.cm


ShowToolTipWindow Member Function

public void ShowToolTipWindow(const String<char>& toolTipText, TreeViewNode* node)

Definition
Line 507 of System.Windows/TreeView.cm


StateIndicatorColor Member Function

public inline nothrow const Color& StateIndicatorColor()

Definition
Line 457 of System.Windows/TreeView.cm


StateIndicatorHeight Member Function

public inline nothrow float StateIndicatorHeight()

Definition
Line 453 of System.Windows/TreeView.cm


StateIndicatorPercentage Member Function

public inline nothrow float StateIndicatorPercentage()

Definition
Line 444 of System.Windows/TreeView.cm


TextBrush Member Function

public inline nothrow const SolidBrush& TextBrush()

Definition
Line 432 of System.Windows/TreeView.cm


TextColor Member Function

public inline nothrow const Color& TextColor()

Definition
Line 478 of System.Windows/TreeView.cm


TextHeight Member Function

public inline nothrow float TextHeight()

Definition
Line 440 of System.Windows/TreeView.cm


ToolTipWindowAdded Member Function

private inline nothrow bool ToolTipWindowAdded()

Definition
Line 700 of System.Windows/TreeView.cm


TrackedNode Member Function

internal inline nothrow TreeViewNode* TrackedNode()

Definition
Line 852 of System.Windows/TreeView.cm


TreeViewNodeChanged Member Function

internal inline nothrow bool TreeViewNodeChanged()

Definition
Line 676 of System.Windows/TreeView.cm


TreeViewNodeStateChanged Member Function

internal inline nothrow bool TreeViewNodeStateChanged()

Definition
Line 688 of System.Windows/TreeView.cm