GetEffective

Theme.GetEffective method

获取应用了继承的有效主题数据。

public IThemeEffectiveData GetEffective()

返回值

AIThemeEffectiveData

例子

此示例演示如何获取有效的主题属性。

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
	IThemeEffectiveData effectiveTheme  = pres.Slides[0].ThemeManager.OverrideTheme.GetEffective();

	Console.WriteLine("Font scheme name: " + effectiveTheme.FontScheme.Name);
	Console.WriteLine("Major latin font: " + effectiveTheme.FontScheme.Major.LatinFont.FontName);
	Console.WriteLine("Minor latin font: " + effectiveTheme.FontScheme.Minor.LatinFont.FontName);
}

也可以看看