//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); IWorksheet worksheet = workbook.Worksheets[0]; GrapeCity.Documents.Excel.Drawing.IShape shape = worksheet.Shapes.AddShape(GrapeCity.Documents.Excel.Drawing.AutoShapeType.Parallelogram, 50, 30, 200, 100); shape.ThreeD.RotationX = 50; shape.ThreeD.RotationY = 20; shape.ThreeD.RotationZ = 30; shape.ThreeD.Depth = 7; shape.ThreeD.Z = 20;
' Create a new Workbook Dim workbook As New Workbook Dim worksheet As IWorksheet = workbook.Worksheets(0) Dim shape As IShape = worksheet.Shapes.AddShape(AutoShapeType.Parallelogram, 50, 30, 200, 100) shape.ThreeD.RotationX = 50 shape.ThreeD.RotationY = 20 shape.ThreeD.RotationZ = 30 shape.ThreeD.Depth = 7 shape.ThreeD.Z = 20 ' save to an excel file workbook.Save("ConfigShape3DFormat.xlsx")