ThreeDFormat — Aspose.Slides FOSS for .NET API Reference

The ThreeDFormat class controls 3-D visual effects on shapes, including bevels, extrusion depth, contour, camera position, lighting, and material. Access it via Shape.ThreeDFormat.

Package: Aspose.Slides.Foss (net9.0)

using Aspose.Slides.Foss;
public class ThreeDFormat : PVIObject, IThreeDFormat

Inheritance

PVIObjectThreeDFormat


Properties

PropertyTypeAccessDescription
BevelTopIShapeBevelReadTop face bevel settings.
BevelBottomIShapeBevelReadBottom face bevel settings.
ExtrusionHeightfloatReadExtrusion depth.
ExtrusionColorIColorFormatReadExtrusion color.
ContourWidthfloatReadContour width.
ContourColorIColorFormatReadContour color.
DepthfloatRead3-D depth value.
CameraICameraReadCamera settings.
LightRigILightRigReadLighting rig settings.
MaterialMaterialPresetTypeReadSurface material preset.

Related Classes

ShapeBevel

public class ShapeBevel : PVIObject, IShapeBevel
PropertyTypeAccessDescription
BevelTypeBevelPresetTypeReadBevel preset type.
WidthfloatReadBevel width.
HeightfloatReadBevel height.

Camera

public class Camera : PVIObject, ICamera
PropertyTypeAccessDescription
CameraTypeCameraPresetTypeReadCamera preset type.
FieldOfViewAnglefloatReadField of view angle.
ZoomfloatReadZoom level.
MethodDescription
SetRotation(float latitude, float longitude, float revolution)Set camera rotation angles.
GetRotation()Get current rotation angles.

LightRig

public class LightRig : PVIObject, ILightRig
PropertyTypeAccessDescription
DirectionLightingDirectionReadLight direction.
LightTypeLightRigPresetTypeReadLight rig preset.
MethodDescription
SetRotation(float latitude, float longitude, float revolution)Set light rotation.
GetRotation()Get current rotation.

Usage Examples

Read 3-D Format

using Aspose.Slides.Foss;

using var prs = new Presentation("deck.pptx");
var shape = prs.Slides[0].Shapes[0];
var td = shape.ThreeDFormat;

Console.WriteLine($"Extrusion height: {td.ExtrusionHeight}");
Console.WriteLine($"Material: {td.Material}");
Console.WriteLine($"Camera: {td.Camera.CameraType}");
Console.WriteLine($"Bevel top type: {td.BevelTop.BevelType}");

See Also