GetEffective

Background.GetEffective 方法

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

public IBackgroundEffectiveData GetEffective()

返回值

一个 IBackgroundEffectiveData

示例

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

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

	Console.WriteLine("背景填充类型: " + effectiveBackground.FillFormat.FillType);
	Console.WriteLine("是否应用了任何效果: " + !effectiveBackground.EffectFormat.IsNoEffects);
}

另请参阅