ZForge.Controls.TreeViewAdv.Tree.NodeControls.EditableControl.SetEditorBounds C# (CSharp) Method

SetEditorBounds() public method

public SetEditorBounds ( EditorContext context ) : void
context EditorContext
return void
        public void SetEditorBounds(EditorContext context)
        {
            Size size = CalculateEditorSize(context);
            context.Editor.Bounds = new Rectangle(context.Bounds.X, context.Bounds.Y,
                Math.Min(size.Width, context.Bounds.Width), context.Bounds.Height);
        }