[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IThreeDFormat

IThreeDFormat Interface

Represents a shape's three-dimensional formatting.

This interface provides access to 3-D effect properties such as extrusion depth, rotation, perspective, visibility, and Z position for a drawing object. You can obtain an IThreeDFormat instance from APIs such as IShape.ThreeD or IChartFormat.ThreeD.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IThreeDFormat
Public Interface IThreeDFormat
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IThreeDFormat threeDFormat = shape.ThreeD;
threeDFormat.Visible = true;
threeDFormat.Depth = 24;

Properties

Name Description
Depth

Gets or sets the depth of the shape's extrusion.

Use this property to determine how far the shape is extruded in three-dimensional formatting.

Perspective

Gets or sets whether the extrusion appears in perspective.

Use this property to get or set whether the extrusion appears in perspective for a shape's 3-D formatting.

RotationX

Gets or sets the rotation of the extruded shape around the x-axis in degrees.

Use this property to get or set the x-axis rotation applied to a shape's three-dimensional formatting.

RotationY

Gets or sets the rotation of the extruded shape around the y-axis in degrees.

Use this property to get or set the y-axis rotation applied to a shape's 3-D formatting.

RotationZ

Gets or sets the rotation of the extruded shape around the z-axis in degrees.

Use this property to get or set the z-axis rotation applied to a shape's three-dimensional formatting.

Visible

Gets or sets whether the object is visible.

Use this property to show or hide the shape's three-dimensional formatting, or to check whether it is currently displayed.

Z

Gets or sets the 3-D Z position of the specified IThreeDFormat object.

Use this property to get or set the depth position of a shape's 3-D formatting. This value is not the stacking order used to layer shapes. The IThreeDFormat instance is typically obtained from ThreeD.

Methods

Name Description
ResetRotation()

Resets the extrusion rotation around the x-axis and the y-axis to 0 (zero) so that the front of the extrusion faces forward.

This method resets only the x-axis and y-axis rotation values of the shape's 3-D formatting.