GetEffective()

Theme::GetEffective() method

Gets effective theme data with the inheritance applied.

System::SharedPtr<IThemeEffectiveData> Aspose::Slides::Theme::Theme::GetEffective() override

Return Value

A IThemeEffectiveData.

Remarks

This example demonstrates getting effective theme properties.

auto pres = MakeObject<Presentation>(u"MyPresentation.pptx");
auto effectiveTheme = pres->get_Slides()->idx_get(0)->get_ThemeManager()->get_OverrideTheme()->GetEffective();

Console::WriteLine(String(u"Font scheme name: ") + effectiveTheme->get_FontScheme()->get_Name());
Console::WriteLine(String(u"Major latin font: ") + effectiveTheme->get_FontScheme()->get_Major()->get_LatinFont()->get_FontName());
Console::WriteLine(String(u"Minor latin font: ") + effectiveTheme->get_FontScheme()->get_Minor()->get_LatinFont()->get_FontName());

See Also