Beispiel #1
0
        public RenderPerformanceScope(IVisio.Application vis, RenderPerforfmanceSettings new_settings)
        {
            this._app = vis;

            // save the old settings
            this._old_settings = new RenderPerforfmanceSettings();
            this._old_settings.Load(this._app);

            // Set the new settings
            new_settings.Apply(this._app);
        }
Beispiel #2
0
        public Page()
        {
            this.Shapes          = new ShapeList();
            this.PageFormatCells = new Pages.PageFormatCells();
            this.PageLayoutCells = new PageLayoutCells();

            this.RenderPerforfmanceSettings             = new RenderPerforfmanceSettings();
            this.RenderPerforfmanceSettings.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.RenderPerforfmanceSettings.ScreenUpdating    = 1;
            this.RenderPerforfmanceSettings.EnableAutoConnect = false;
            this.RenderPerforfmanceSettings.LiveDynamics      = false;
        }