GetSubstitutions

GetSubstitutions()

Gets the information about fonts that will be replaced on the presentation’s rendering.

public IEnumerable<FontSubstitutionInfo> GetSubstitutions()

Return Value

Collection of all fonts substitution FontSubstitutionInfo.

Examples

using (Presentation pres = new Presentation("pres.pptx"))
{
    foreach (FontSubstitutionInfo fontSubstitution in pres.FontsManager.GetSubstitutions())
    {
        Console.WriteLine("{0} -> {1}", fontSubstitution.OriginalFontName, fontSubstitution.SubstitutedFontName);
    }
}        

See Also


GetSubstitutions(int[])

Gets the information about fonts that will be replaced during rendering of the specified slides.

public IEnumerable<FontSubstitutionInfo> GetSubstitutions(int[] slides)
ParameterTypeDescription
slidesInt32[]An array of slide indexes for which to retrieve font substitution information, starting from 1.

Return Value

A collection of all font substitutions (FontSubstitutionInfo) for the specified slides.

Examples

using (Presentation pres = new Presentation("pres.pptx"))
{
    int[] targetSlides = { 1, 2, 5 };
    foreach (var fontSubstitution in pres.FontsManager.GetSubstitutions(targetSlides))
    {
        Console.WriteLine("{0} -> {1}", fontSubstitution.OriginalFontName, fontSubstitution.SubstitutedFontName);
    }
}

See Also