Beispiel #1
0
        /// <summary>
        /// Sets the <see cref="OfficeOpenXml.Drawing.Chart.ExcelChart" /> location on the host.
        /// </summary>
        /// <param name="chart"><see cref="OfficeOpenXml.Drawing.Chart.ExcelChart" /> object.</param>
        /// <param name="location">Location model definition.</param>
        private static void FormatFromModel(this ExcelDrawing chart, LocationModel location)
        {
            var coordenates =
                location.LocationType.Equals(KnownElementLocation.ByAlignment)
                    ? new Point(1, 1)
                    : ((CoordenatesModel)location.Mode).TableCoordenates;

            chart.SetPosition(coordenates.Y - 1, 0, coordenates.X - 1, 0);
        }
Beispiel #2
0
 public void SetPosition(int top, int left)
 {
     _drawing.SetPosition(top, left);
 }
Beispiel #3
0
 public void SetPosition(int row, int rowOffsetPixels, int column, int columnOffsetPixels)
 {
     _excelDrawing.SetPosition(row, rowOffsetPixels, column, columnOffsetPixels);
 }