public override Pages.PageLayoutCells CellDataToCellGroup(VisioAutomation.Utilities.ArraySegment <ShapeSheet.CellData> row) { var cells = new Pages.PageLayoutCells(); cells.AvenueSizeX = row[this.AvenueSizeX]; cells.AvenueSizeY = row[this.AvenueSizeY]; cells.BlockSizeX = row[this.BlockSizeX]; cells.BlockSizeY = row[this.BlockSizeY]; cells.CtrlAsInput = row[this.ControlAsInput]; cells.DynamicsOff = row[this.DynamicsOff]; cells.EnableGrid = row[this.EnableGrid]; cells.LineAdjustFrom = row[this.LineAdjustFrom]; cells.LineAdjustTo = row[this.LineAdjustTo]; cells.LineJumpCode = row[this.LineJumpCode]; cells.LineJumpFactorX = row[this.LineJumpFactorX]; cells.LineJumpFactorY = row[this.LineJumpFactorY]; cells.LineJumpStyle = row[this.LineJumpStyle]; cells.LineRouteExt = row[this.LineRouteExt]; cells.LineToLineX = row[this.LineToLineX]; cells.LineToLineY = row[this.LineToLineY]; cells.LineToNodeX = row[this.LineToNodeX]; cells.LineToNodeY = row[this.LineToNodeY]; cells.LineJumpDirX = row[this.LineJumpDirX]; cells.LineJumpDirY = row[this.LineJumpDirY]; cells.PageShapeSplit = row[this.ShapeSplit]; cells.PlaceDepth = row[this.PlaceDepth]; cells.PlaceFlip = row[this.PlaceFlip]; cells.PlaceStyle = row[this.PlaceStyle]; cells.PlowCode = row[this.PlowCode]; cells.ResizePage = row[this.ResizePage]; cells.RouteStyle = row[this.RouteStyle]; cells.AvoidPageBreaks = row[this.AvoidPageBreaks]; return(cells); }
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; }