ThreeDFormat
ITextFrameFormat.ThreeDFormat propiedad
Devuelve el objeto ThreeDFormat que representa las propiedades de efecto 3d para un texto. Solo lectura IThreeDFormat
.
public IThreeDFormat ThreeDFormat { get; }
Ejemplos
[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 = "Texto de prueba de Aspose.Slide";
// Establecer transformación de texto
textFrame.TextFrameFormat.Transform = TextShapeType.ArchUpPour;
// Establecer Extrusión
textFrame.TextFrameFormat.ThreeDFormat.ExtrusionColor.Color = Color.Orange;
textFrame.TextFrameFormat.ThreeDFormat.ExtrusionHeight = 6;
// Establecer Contorno
textFrame.TextFrameFormat.ThreeDFormat.ContourColor.Color = Color.DarkRed;
textFrame.TextFrameFormat.ThreeDFormat.ContourWidth = 1.5;
// Establecer Profundidad
textFrame.TextFrameFormat.ThreeDFormat.Depth = 3;
// Establecer Material
textFrame.TextFrameFormat.ThreeDFormat.Material = MaterialPresetType.Plastic;
// Establecer Iluminación
textFrame.TextFrameFormat.ThreeDFormat.LightRig.Direction = LightingDirection.Top;
textFrame.TextFrameFormat.ThreeDFormat.LightRig.LightType = LightRigPresetType.Balanced;
textFrame.TextFrameFormat.ThreeDFormat.LightRig.SetRotation(0, 0, 40);
// Establecer tipo de cámara
textFrame.TextFrameFormat.ThreeDFormat.Camera.CameraType = CameraPresetType.PerspectiveContrastingRightFacing;
}
Ver También
- interfaz IThreeDFormat
- interfaz ITextFrameFormat
- espacio de nombres Aspose.Slides
- ensamblado Aspose.Slides