public FormatCells GetCells(VA.ShapeSheet.CellData <double>[] row) { var cells = new FormatCells(); cells.FillBkgnd = row[this.FillBkgnd.Ordinal].ToInt(); cells.FillBkgndTrans = row[this.FillBkgndTrans.Ordinal]; cells.FillForegnd = row[this.FillForegnd.Ordinal].ToInt(); cells.FillForegndTrans = row[this.FillForegndTrans.Ordinal]; cells.FillPattern = row[this.FillPattern.Ordinal].ToInt(); cells.ShapeShdwObliqueAngle = row[this.ShapeShdwObliqueAngle.Ordinal]; cells.ShapeShdwOffsetX = row[this.ShapeShdwOffsetX.Ordinal]; cells.ShapeShdwOffsetY = row[this.ShapeShdwOffsetY.Ordinal]; cells.ShapeShdwScaleFactor = row[this.ShapeShdwScaleFactor.Ordinal]; cells.ShapeShdwType = row[this.ShapeShdwType.Ordinal].ToInt(); cells.ShdwBkgnd = row[this.ShdwBkgnd.Ordinal].ToInt(); cells.ShdwBkgndTrans = row[this.ShdwBkgndTrans.Ordinal]; cells.ShdwForegnd = row[this.ShdwForegnd.Ordinal].ToInt(); cells.ShdwForegndTrans = row[this.ShdwForegndTrans.Ordinal]; cells.ShdwPattern = row[this.ShdwPattern.Ordinal].ToInt(); cells.BeginArrow = row[this.BeginArrow.Ordinal].ToInt(); cells.BeginArrowSize = row[this.BeginArrowSize.Ordinal]; cells.EndArrow = row[this.EndArrow.Ordinal].ToInt(); cells.EndArrowSize = row[this.EndArrowSize.Ordinal]; cells.LineCap = row[this.LineCap.Ordinal].ToInt(); cells.LineColor = row[this.LineColor.Ordinal].ToInt(); cells.LineColorTrans = row[this.LineColorTrans.Ordinal]; cells.LinePattern = row[this.LinePattern.Ordinal].ToInt(); cells.LineWeight = row[this.LineWeight.Ordinal]; cells.Rounding = row[this.Rounding.Ordinal]; return(cells); }
public FormatCells GetCells(VA.ShapeSheet.CellData<double>[] row) { var cells = new FormatCells(); cells.FillBkgnd = row[ this.FillBkgnd.Ordinal].ToInt(); cells.FillBkgndTrans = row[ this.FillBkgndTrans.Ordinal]; cells.FillForegnd = row[ this.FillForegnd.Ordinal].ToInt(); cells.FillForegndTrans = row[ this.FillForegndTrans.Ordinal]; cells.FillPattern = row[ this.FillPattern.Ordinal].ToInt(); cells.ShapeShdwObliqueAngle = row[ this.ShapeShdwObliqueAngle.Ordinal]; cells.ShapeShdwOffsetX = row[ this.ShapeShdwOffsetX.Ordinal]; cells.ShapeShdwOffsetY = row[ this.ShapeShdwOffsetY.Ordinal]; cells.ShapeShdwScaleFactor = row[ this.ShapeShdwScaleFactor.Ordinal]; cells.ShapeShdwType = row[ this.ShapeShdwType.Ordinal].ToInt(); cells.ShdwBkgnd = row[ this.ShdwBkgnd.Ordinal].ToInt(); cells.ShdwBkgndTrans = row[ this.ShdwBkgndTrans.Ordinal]; cells.ShdwForegnd = row[ this.ShdwForegnd.Ordinal].ToInt(); cells.ShdwForegndTrans = row[ this.ShdwForegndTrans.Ordinal]; cells.ShdwPattern = row[ this.ShdwPattern.Ordinal].ToInt(); cells.BeginArrow = row[ this.BeginArrow.Ordinal].ToInt(); cells.BeginArrowSize = row[ this.BeginArrowSize.Ordinal]; cells.EndArrow = row[ this.EndArrow.Ordinal].ToInt(); cells.EndArrowSize = row[ this.EndArrowSize.Ordinal]; cells.LineCap = row[ this.LineCap.Ordinal].ToInt(); cells.LineColor = row[ this.LineColor.Ordinal].ToInt(); cells.LineColorTrans = row[ this.LineColorTrans.Ordinal]; cells.LinePattern = row[ this.LinePattern.Ordinal].ToInt(); cells.LineWeight = row[ this.LineWeight.Ordinal]; cells.Rounding = row[ this.Rounding.Ordinal]; return cells; }