Flexible TreeView 5.1.9 Help
GetFont(Node,DrawContext) Method



The node for which get the font.
The draw context for current draw operation.
Gets the node control`s font according to the draw context.
Syntax
'Declaration
 
Public Overloads Overridable Function GetFont( _
   ByVal pNode As Node, _
   ByVal pContext As DrawContext _
) As Font
'Usage
 
Dim instance As NodeControl
Dim pNode As Node
Dim pContext As DrawContext
Dim value As Font
 
value = instance.GetFont(pNode, pContext)
public virtual Font GetFont( 
   Node pNode,
   DrawContext pContext
)
public:
virtual Font^ GetFont( 
   Node^ pNode,
   DrawContext^ pContext
) 

Parameters

pNode
The node for which get the font.
pContext
The draw context for current draw operation.

Return Value

The node control font.
Remarks
Finds the font in the order:

1) gets the node control`s custom style;

2) if null - calls the ARMSoft.FlexibleTreeView.Nodes.Node.GetFont method of the specified node;

3) if null - raises the ARMSoft.FlexibleTreeView.FlexibleTreeView.NodeStyleGetFont event;

4) if null - returns pContext.Font property value.

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
Overload List

Send Feedback