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; }
public override Pages.PageFormatCells CellDataToCellGroup(VisioAutomation.Utilities.ArraySegment <ShapeSheet.CellData> row) { var cells = new Pages.PageFormatCells(); cells.DrawingScale = row[this.DrawingScale]; cells.DrawingScaleType = row[this.DrawingScaleType]; cells.DrawingSizeType = row[this.DrawingSizeType]; cells.InhibitSnap = row[this.InhibitSnap]; cells.Height = row[this.Height]; cells.Scale = row[this.Scale]; cells.Width = row[this.Width]; cells.ShadowObliqueAngle = row[this.ShadowObliqueAngle]; cells.ShadowOffsetX = row[this.ShadowOffsetX]; cells.ShadowOffsetY = row[this.ShadowOffsetY]; cells.ShadowScaleFactor = row[this.ShadowScaleFactor]; cells.ShadowType = row[this.ShadowType]; cells.UIVisibility = row[this.UIVisibility]; cells.DrawingResizeType = row[this.DrawingResizeType]; return(cells); }