GetEffective

PortionFormat.GetEffective method

获取应用继承的有效部分格式化数据。

public IPortionFormatEffectiveData GetEffective()

返回值

AIPortionFormatEffectiveData

例子

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

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
	IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
	IPortionFormatEffectiveData effectivePortionFormat = shape.TextFrame.Paragraphs[0].Portions[0].PortionFormat.GetEffective();

	Console.WriteLine("Latin font: " + effectivePortionFormat.LatinFont.FontName);
	Console.WriteLine("Font height: " + effectivePortionFormat.FontHeight);
	Console.WriteLine("Fill type: " + effectivePortionFormat.FillFormat.FillType);
}

也可以看看