internal ConnectionPointValues(int shapeid, VA.Shapes.Connections.ConnectionPointCells point) { this.ShapeID = shapeid; this.Type = point.Type.Formula.Value; this.X = point.X.Formula.Value; this.Y = point.Y.Formula.Value; this.DirX = point.DirX.Formula.Value; this.DirY = point.DirY.Formula.Value; }
public VisioAutomation.Shapes.Connections.ConnectionPointCells GetCells(System.Collections.Generic.IList<ShapeSheet.CellData<double>> row) { var cells = new VisioAutomation.Shapes.Connections.ConnectionPointCells(); cells.X = row[this.X]; cells.Y = row[this.Y]; cells.DirX = Extensions.CellDataMethods.ToInt(row[this.DirX]); cells.DirY = Extensions.CellDataMethods.ToInt(row[this.DirY]); cells.Type = Extensions.CellDataMethods.ToInt(row[this.Type]); return cells; }
public VisioAutomation.Shapes.Connections.ConnectionPointCells GetCells(System.Collections.Generic.IList <ShapeSheet.CellData <double> > row) { var cells = new VisioAutomation.Shapes.Connections.ConnectionPointCells(); cells.X = row[this.X]; cells.Y = row[this.Y]; cells.DirX = Extensions.CellDataMethods.ToInt(row[this.DirX]); cells.DirY = Extensions.CellDataMethods.ToInt(row[this.DirY]); cells.Type = Extensions.CellDataMethods.ToInt(row[this.Type]); return(cells); }