ZForge.Controls.TreeViewAdv.Tree.NodeControls.NodeIcon.Draw C# (CSharp) Method

Draw() public method

public Draw ( TreeNodeAdv node, DrawContext context ) : void
node TreeNodeAdv
context DrawContext
return void
        public override void Draw(TreeNodeAdv node, DrawContext context)
        {
            Image image = GetIcon(node);
            if (image != null)
            {
                Rectangle r = GetBounds(node, context);
                context.Graphics.DrawImage(image, r.Location);
            }
        }