GetEffective
ThreeDFormat.GetEffective 方法
获取应用继承的有效3D格式数据。
public IThreeDFormatEffectiveData GetEffective()
返回值
一个 IThreeDFormatEffectiveData
。
示例
此示例演示如何获取相机、光源装置和形状的顶部斜角的有效属性。
[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
IThreeDFormatEffectiveData threeDEffectiveData = pres.Slides[0].Shapes[0].ThreeDFormat.GetEffective();
Console.WriteLine("= 有效的相机属性 =");
Console.WriteLine("类型: " + threeDEffectiveData.Camera.CameraType);
Console.WriteLine("视场角: " + threeDEffectiveData.Camera.FieldOfViewAngle);
Console.WriteLine("缩放: " + threeDEffectiveData.Camera.Zoom);
Console.WriteLine("= 有效的光源装置属性 =");
Console.WriteLine("类型: " + threeDEffectiveData.LightRig.LightType);
Console.WriteLine("方向: " + threeDEffectiveData.LightRig.Direction);
Console.WriteLine("= 有效的形状顶部面浮雕属性 =");
Console.WriteLine("类型: " + threeDEffectiveData.BevelTop.BevelType);
Console.WriteLine("宽度: " + threeDEffectiveData.BevelTop.Width);
Console.WriteLine("高度: " + threeDEffectiveData.BevelTop.Height);
}