ThreeDFormat
ITextFrameFormat.ThreeDFormat property
返回表示文本的 3d 效果属性的 ThreeDFormat 对象。 只读IThreeDFormat
。
public IThreeDFormat ThreeDFormat { get; }
例子
[C#]
using (Presentation pres = new Presentation())
{
IAutoShape autoShape = pres.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 10, 20, 400, 300);
ITextFrame textFrame = autoShape.TextFrame;
textFrame.Text = "Aspose.Slide Test Text";
// 设置文本 transformation
textFrame.TextFrameFormat.Transform = TextShapeType.ArchUpPour;
// 设置 Extrusion
textFrame.TextFrameFormat.ThreeDFormat.ExtrusionColor.Color = Color.Orange;
textFrame.TextFrameFormat.ThreeDFormat.ExtrusionHeight = 6;
// 设置 Contour
textFrame.TextFrameFormat.ThreeDFormat.ContourColor.Color = Color.DarkRed;
textFrame.TextFrameFormat.ThreeDFormat.ContourWidth = 1.5;
// 设置深度
textFrame.TextFrameFormat.ThreeDFormat.Depth = 3;
// 设置 Material
textFrame.TextFrameFormat.ThreeDFormat.Material = MaterialPresetType.Plastic;
// 设置 Lighting
textFrame.TextFrameFormat.ThreeDFormat.LightRig.Direction = LightingDirection.Top;
textFrame.TextFrameFormat.ThreeDFormat.LightRig.LightType = LightRigPresetType.Balanced;
textFrame.TextFrameFormat.ThreeDFormat.LightRig.SetRotation(0, 0, 40);
// 设置相机类型
textFrame.TextFrameFormat.ThreeDFormat.Camera.CameraType = CameraPresetType.PerspectiveContrastingRightFacing;
}
也可以看看
- interface IThreeDFormat
- interface ITextFrameFormat
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides