ZForge.Controls.TreeViewAdv.Tree.NodeControls.EditableControl.SetEditorBounds C# (CSharp) Méthode

SetEditorBounds() public méthode

public SetEditorBounds ( EditorContext context ) : void
context EditorContext
Résultat 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);
        }