protected void SetEditControlProperties(Control control, TreeNodeAdv node) { string label = GetLabel(node); DrawContext context = new DrawContext(); context.Font = control.Font; control.Font = GetDrawingFont(node, context, label); }