// 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 GetWorksheetChartLegendExample() { CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret")); GetWorksheetChartLegendRequest request = new GetWorksheetChartLegendRequest { name = "Book1.xlsx", sheetName = "Sheet4", chartIndex = 0, folder = "TestData/In" }; cellsApi.GetWorksheetChartLegend(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.CellsChartsGetWorksheetChartLegend(name, sheetName, chartIndex, folder); //Assert.IsInstanceOf<LegendResponse>(response, "response is LegendResponse"); //Assert.AreEqual(response.Code, 200);