Syncfusion.XlsIO.Base
Example 


ThreeD Property (IShape)

Gets the Three dimensional format of the shape.
Syntax
'Declaration
 
ReadOnly Property ThreeD As IThreeDFormat
'Usage
 
Dim instance As IShape
Dim value As IThreeDFormat
 
value = instance.ThreeD
IThreeDFormat ThreeD {get;}
Example
The following code illustrates how to access ThreeD property.
using Syncfusion.XlsIO;
            
class Program
{
    static void Main()
    {
        using (ExcelEngine excelEngine = new ExcelEngine())
        {
            //Create worksheet
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            
            //Add shape
            IShape shape = worksheet.Shapes.AddAutoShapes(AutoShapeType.Rectangle, 2, 2, 40, 100);
            
            //Set 3D format
            IThreeDFormat format = shape.ThreeD;
            
            //Set material
            format.Material = Excel2007ChartMaterialProperties.TranslucentPowder;
            
            //Save and dispose
            workbook.SaveAs("Shapes3D.xlsx");
            workbook.Close();
        }
    }
}
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.47

See Also