Class ThreeDFormat
Contents
[
Hide
]ThreeDFormat class
Represents a shape’s three-dimensional formatting.
public class ThreeDFormat
Properties
| Name | Description |
|---|---|
| BottomBevelHeight { get; set; } | Gets and sets the height of the bottom bevel, or how far into the shape it is applied. In unit of Points. |
| BottomBevelType { get; set; } | Gets and sets the type of the bottom bevel, or how far into the shape it is applied. In unit of Points. |
| BottomBevelWidth { get; set; } | Gets and sets the width of the bottom bevel, or how far into the shape it is applied. In unit of Points. |
| ContourColor { get; set; } | Gets and sets the contour color on a shape. |
| ContourWidth { get; set; } | Gets and sets the contour width on the shape, in unit of points. |
| ExtrusionColor { get; set; } | Gets the extrusion color on a shape. |
| ExtrusionHeight { get; set; } | Gets and sets the extrusion height of the applied to the shape, in unit of points. |
| LightAngle { get; set; } | Gets and sets the angle of the extrusion lights. |
| Lighting { get; set; } | Gets and sets type of light rig. |
| LightingDirection { get; set; } | Gets and sets the direction from which the light rig is oriented in relation to the scene. |
| Material { get; set; } | Represents the preset material which is combined with the lighting properties to give the final look and feel of a shape. |
| Perspective { get; set; } | Gets and sets the angle at which a ThreeDFormat object can be viewed. |
| PresetCameraType { get; set; } | Gets and sets the extrusion preset camera type. |
| RotationX { get; set; } | Gets and sets the rotation of the extruded shape around the x-axis in degrees. |
| RotationY { get; set; } | Gets and sets the rotation of the extruded shape around the y-axis in degrees. |
| RotationZ { get; set; } | Gets and sets the rotation of the extruded shape around the z-axis in degrees. |
| TopBevelHeight { get; set; } | Gets and sets the height of the top bevel, or how far into the shape it is applied. In unit of Points. |
| TopBevelType { get; set; } | Gets and sets the type of the top bevel, or how far into the shape it is applied. In unit of Points. |
| TopBevelWidth { get; set; } | Gets and sets the width of the top bevel, or how far into the shape it is applied. In unit of Points. |
| Z { get; set; } | Defines the distance from ground for the 3D shape. |
Methods
| Name | Description |
|---|---|
| override Equals(object) | |
| override GetHashCode() | Gets hashcode. |
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
namespace AsposeCellsExamples
{
public class DrawingClassThreeDFormatDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
Shape shape = worksheet.Shapes.AddShape(MsoDrawingType.Rectangle, 10, 10, 210, 210, 200, 200);
ThreeDFormat threeDFormat = shape.ThreeDFormat;
threeDFormat.TopBevelType = BevelType.SoftRound;
threeDFormat.TopBevelWidth = 10;
threeDFormat.TopBevelHeight = 10;
threeDFormat.BottomBevelType = BevelType.Divot;
threeDFormat.BottomBevelWidth = 5;
threeDFormat.BottomBevelHeight = 5;
threeDFormat.ExtrusionColor.Color = System.Drawing.Color.Blue;
threeDFormat.ExtrusionHeight = 20;
workbook.Save("ThreeDFormatDemo.xlsx");
}
}
}
See Also
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells