コード例 #1
0
ファイル: Page.cs プロジェクト: LiDamon/VisioAutomation
        public Page()
        {
            this.Shapes    = new ShapeList();
            this.PageCells = new Pages.PageCells();

            this.PerfSettings             = new Application.PerfSettings();
            this.PerfSettings.DeferRecalc = 0;

            // By Enable ScreenUpdating by default
            // If it is disabled it messes up page resizing (there may be a workaround)
            // TODO: Try the DrawTreeMultiNode2 unit test to see how setting it to 1 will affect the rendering

            this.PerfSettings.ScreenUpdating    = 1;
            this.PerfSettings.EnableAutoConnect = false;
            this.PerfSettings.LiveDynamics      = false;
        }
コード例 #2
0
        public Page()
        {
            this.Shapes = new ShapeList();
            this.PageCells = new Pages.PageCells();

            this.PerfSettings = new Application.PerfSettings();
            this.PerfSettings.DeferRecalc = 0;
            
            
            // By Enable ScreenUpdating by default
            // If it is disabled it messes up page resizing (there may be a workaround)
            // TODO: Try the DrawTreeMultiNode2 unit test to see how setting it to 1 will affect the rendering

            this.PerfSettings.ScreenUpdating = 1; 
            this.PerfSettings.EnableAutoConnect = false;
            this.PerfSettings.LiveDynamics = false;
        }