ThreeDFormat
TextFrameFormat.ThreeDFormat Eigenschaft
Gibt das ThreeDFormat-Objekt zurück, das die 3D-Effekt-Eigenschaften für einen Text darstellt. Nur lesbar IThreeDFormat
.
public IThreeDFormat ThreeDFormat { get; }
Beispiele
[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 Testtext";
// Setzen Sie die Texttransformation
textFrame.TextFrameFormat.Transform = TextShapeType.ArchUpPour;
// Setzen Sie die Extrusion
textFrame.TextFrameFormat.ThreeDFormat.ExtrusionColor.Color = Color.Orange;
textFrame.TextFrameFormat.ThreeDFormat.ExtrusionHeight = 6;
// Setzen Sie den Kontur
textFrame.TextFrameFormat.ThreeDFormat.ContourColor.Color = Color.DarkRed;
textFrame.TextFrameFormat.ThreeDFormat.ContourWidth = 1.5;
// Setzen Sie die Tiefe
textFrame.TextFrameFormat.ThreeDFormat.Depth = 3;
// Setzen Sie das Material
textFrame.TextFrameFormat.ThreeDFormat.Material = MaterialPresetType.Plastic;
// Setzen Sie die Beleuchtung
textFrame.TextFrameFormat.ThreeDFormat.LightRig.Direction = LightingDirection.Top;
textFrame.TextFrameFormat.ThreeDFormat.LightRig.LightType = LightRigPresetType.Balanced;
textFrame.TextFrameFormat.ThreeDFormat.LightRig.SetRotation(0, 0, 40);
// Setzen Sie den Kameratyp
textFrame.TextFrameFormat.ThreeDFormat.Camera.CameraType = CameraPresetType.PerspectiveContrastingRightFacing;
}
Siehe Auch
- interface IThreeDFormat
- class TextFrameFormat
- namespace Aspose.Slides
- assembly Aspose.Slides