/// <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); }
public void SetPosition(int top, int left) { _drawing.SetPosition(top, left); }
public void SetPosition(int row, int rowOffsetPixels, int column, int columnOffsetPixels) { _excelDrawing.SetPosition(row, rowOffsetPixels, column, columnOffsetPixels); }