ThreeDFormat
ITextFrameFormat.ThreeDFormat-Eigenschaft
Gibt das ThreeDFormat-Objekt zurück, das die 3D-Effekt-Eigenschaften für einen Text darstellt. Nur-Lese 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 Test Text";
// Texttransformation setzen
textFrame.TextFrameFormat.Transform = TextShapeType.ArchUpPour;
// Extrusion setzen
textFrame.TextFrameFormat.ThreeDFormat.ExtrusionColor.Color = Color.Orange;
textFrame.TextFrameFormat.ThreeDFormat.ExtrusionHeight = 6;
// Kontur setzen
textFrame.TextFrameFormat.ThreeDFormat.ContourColor.Color = Color.DarkRed;
textFrame.TextFrameFormat.ThreeDFormat.ContourWidth = 1.5;
// Tiefe setzen
textFrame.TextFrameFormat.ThreeDFormat.Depth = 3;
// Material setzen
textFrame.TextFrameFormat.ThreeDFormat.Material = MaterialPresetType.Plastic;
// Beleuchtung setzen
textFrame.TextFrameFormat.ThreeDFormat.LightRig.Direction = LightingDirection.Top;
textFrame.TextFrameFormat.ThreeDFormat.LightRig.LightType = LightRigPresetType.Balanced;
textFrame.TextFrameFormat.ThreeDFormat.LightRig.SetRotation(0, 0, 40);
// Kameratyp setzen
textFrame.TextFrameFormat.ThreeDFormat.Camera.CameraType = CameraPresetType.PerspectiveContrastingRightFacing;
}
Siehe auch
- Schnittstelle IThreeDFormat
- Schnittstelle ITextFrameFormat
- Namespace Aspose.Slides
- Assembly Aspose.Slides