GetEffective
TextFrameFormat.GetEffective method
获取应用了继承的有效文本框架格式数据。
public ITextFrameFormatEffectiveData GetEffective()
返回值
AITextFrameFormatEffectiveData
。
例子
此示例演示了获取一些有效的文本框架格式属性。
[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
ITextFrameFormatEffectiveData effectiveTextFrameFormat = shape.TextFrame.TextFrameFormat.GetEffective();
Console.WriteLine("Anchoring type: " + effectiveTextFrameFormat.AnchoringType);
Console.WriteLine("Autofit type: " + effectiveTextFrameFormat.AutofitType);
Console.WriteLine("Text vertical type: " + effectiveTextFrameFormat.TextVerticalType);
Console.WriteLine("Margins");
Console.WriteLine(" Left: " + effectiveTextFrameFormat.MarginLeft);
Console.WriteLine(" Top: " + effectiveTextFrameFormat.MarginTop);
Console.WriteLine(" Right: " + effectiveTextFrameFormat.MarginRight);
Console.WriteLine(" Bottom: " + effectiveTextFrameFormat.MarginBottom);
}
也可以看看
- interface ITextFrameFormatEffectiveData
- class TextFrameFormat
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides