public RenderPerformanceScope(IVisio.Application vis, RenderPerformanceSettings new_settings)
        {
            this._app = vis;

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

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

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