GetEffective

Background.GetEffective method

获取应用了继承的有效背景数据。

public IBackgroundEffectiveData GetEffective()

返回值

AIBackgroundEffectiveData

例子

此示例演示如何获取有效的背景属性。

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
	IBackgroundEffectiveData effectiveBackground = pres.Slides[0].Background.GetEffective();

	Console.WriteLine("Background fill type: " + effectiveBackground.FillFormat.FillType);
	Console.WriteLine("Any effects applied: " + !effectiveBackground.EffectFormat.IsNoEffects);
}

也可以看看