public PerfScope(IVisio.Application vis, VA.Application.PerfSettings new_settings) { this.app = vis; // save the old settings this.old_settings = new VA.Application.PerfSettings(); this.old_settings.Load(this.app); // Set the new settings new_settings.Apply(app); }
public PerfScope(IVisio.Application vis, VA.Application.PerfSettings new_settings) { this.app = vis; // save the old settings this.old_settings = new VA.Application.PerfSettings(); this.old_settings.Load(this.app); // Set the new settings new_settings.Apply(app); }
public Page() { this.Shapes = new ShapeList(); this.PageCells = new VA.Pages.PageCells(); this.PerfSettings = new VA.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; }