ZForge.Controls.TreeViewAdv.Tree.NodeControls.BaseTextControl.GetDrawingFont C# (CSharp) Method

GetDrawingFont() protected method

protected GetDrawingFont ( TreeNodeAdv node, DrawContext context, string label ) : Font
node TreeNodeAdv
context DrawContext
label string
return System.Drawing.Font
        protected Font GetDrawingFont(TreeNodeAdv node, DrawContext context, string label)
        {
            Font font = context.Font;
            if (DrawText != null)
            {
                DrawEventArgs args = new DrawEventArgs(node, context, label);
                args.Font = context.Font;
                OnDrawText(args);
                font = args.Font;
            }
            return font;
        }