GetEffective

ParagraphFormat.GetEffective method

获取应用了继承的有效段落格式数据。

public IParagraphFormatEffectiveData GetEffective()

返回值

AIParagraphFormatEffectiveData

例子

此示例演示了获取一些有效的段落格式属性。

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
	IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
	IParagraphFormatEffectiveData effectiveParagraphFormat = shape.TextFrame.Paragraphs[0].ParagraphFormat.GetEffective();

	Console.WriteLine("Text alignment: " + effectiveParagraphFormat.Alignment);
	Console.WriteLine("Indent: " + effectiveParagraphFormat.Indent);
	Console.WriteLine("Bullet type: " + effectiveParagraphFormat.Bullet.Type);
}

也可以看看