Trabajar con el ThreeDFormat de Shape o Chart

Posibles escenarios de uso

Aspose.Cells proporciona elForma.ThreeDFormat propiedad junto conTresDformato clase para trabajar con el formato 3-D de forma o gráfico. ÉlTresDformatoLa clase contiene diferentes propiedades que se pueden configurar para lograr diferentes resultados según los requisitos de la aplicación.

Trabajar con el ThreeDFormat de Shape o Chart

El siguiente código de ejemplo carga elarchivo fuente excel y accede a la primera forma en la primera hoja de trabajo y establece las subpropiedades deForma.ThreeDFormatpropiedad y luego guarda el libro en elarchivo de salida de Excel.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Load excel file containing a shape
Workbook wb = new Workbook(dataDir + "sample.xlsx");
// Access first worksheet
Worksheet ws = wb.Worksheets[0];
// Access first shape
Shape sh = ws.Shapes[0];
// Apply different three dimensional settings
ThreeDFormat n3df = sh.ThreeDFormat;
n3df.ContourWidth = 17;
n3df.ExtrusionHeight = 32;
// Save the output excel file in xlsx format
wb.Save(dataDir + "output_out.xlsx");