Flexible TreeView 5.1.9 Help
IsVisibleForNode Method



The target node.
Determines whether this node control is visible for the specified node. Node control has many ways to control the visibility within a node, like the node control filtration and Visibility property, but in a treeview with many nodes all of them may hurt the performance as they work with huge amount of static data where the particular node control`s visibility is stored. On the other hand, if you know when to show or hide this node control for every node, this method provide an efficient way to dynamically control the node control visibility without creation huge arrays with visibility settings.
Syntax
'Declaration
 
Protected Friend Overridable Function IsVisibleForNode( _
   ByVal pNode As Node _
) As Integer
'Usage
 
Dim instance As NodeControl
Dim pNode As Node
Dim value As Integer
 
value = instance.IsVisibleForNode(pNode)
protected internal virtual int IsVisibleForNode( 
   Node pNode
)
protected internal:
virtual int IsVisibleForNode( 
   Node^ pNode
) 

Parameters

pNode
The target node.

Return Value

1 if this node control is visible for the specified node; 0 if node control is invisible for the specified node or -1 if treeview should check other node control`s visibility settings. The default value is 01.
Remarks
Node control has many ways to control the visibility within a node, like the node control filtration and Visibility property, but in a treeview with many nodes all of them may hurt the performance as they work with huge amount of static data where the particular node control`s visibility is stored. On the other hand, if you know when to show or hide this node control for every node, this method provide an efficient way to dynamically control the node control visibility without creation huge arrays with visibility settings.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NodeControl Class
NodeControl Members

Send Feedback