コード例 #1
0
        public void Apply()
        {
            bool b = _host.DisableUndo;

            _host.DisableUndo = true;
            Control c = _host.GetUndoControl(_ctrlKey);

            if (c != null)
            {
                c.Size = _size;
                if (c.Parent != null)
                {
                    ActiveDrawing.RefreshControl(c.Parent);
                }
            }
            _host.DisableUndo = b;
        }
コード例 #2
0
 protected LinkLineNode GetLineNode(UInt32 key)
 {
     return(_host.GetUndoControl(key) as LinkLineNode);
 }