// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/ namespace Aspose.Cells.Cloud.SDK.Example { using Aspose.Cells.Cloud.SDK.Api; using Aspose.Cells.Cloud.SDK.Request; using System; public partial class CellsApiExample { public void GetChartAreaFillFormatExample() { CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret")); GetChartAreaFillFormatRequest request = new GetChartAreaFillFormatRequest { name = "Book1.xlsx", sheetName = "Sheet4", chartIndex = 0, folder = "TestData/In" }; cellsApi.GetChartAreaFillFormat(request); } } } //// Obsolet //CellsApi instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl); //string name = MYDOC; //string sheetName = SHEET3; //int? chartIndex = 0; //string folder = TEMPFOLDER; //instance.UploadFile(folder + @"\" + name, File.Open( @"C:\TestData\" +name)); //var response = instance.CellsChartAreaGetChartAreaFillFormat(name, sheetName, chartIndex, folder); //Assert.IsInstanceOf<FillFormatResponse>(response, "response is FillFormatResponse"); //Assert.AreEqual(response.Code, 200);