예제 #1
0
 private void SetDimensions(System.Drawing.Point location, System.Drawing.Size size)
 {
     Debug.WriteLine("Setting Dimensions to " + size.ToString() + ", " + location.ToString());
     // Evaluate the width, etc
     Size     = size;
     Location = location;
 }
예제 #2
0
        public static void changeScreenSize()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;

            Autodesk.AutoCAD.Windows.Window docWindow = doc.Window;

            System.Drawing.Size size = docWindow.GetSize();

            Editor ed = doc.Editor;

            ed.WriteMessage("\nDocument Size:\n" + size.ToString() + "\n");

            docWindow.WindowState = Window.State.Normal;

            docWindow.SetSize(new System.Drawing.Size(500, 500));
        }