Share via


Fonts Interface

A collection of all the ChartFont objects in the specified presentation.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<GuidAttribute("91493467-5A91-11CF-8700-00AA0060263B")> _
Public Interface Fonts _
    Inherits Collection
'Usage
Dim instance As Fonts
[GuidAttribute("91493467-5A91-11CF-8700-00AA0060263B")]
public interface Fonts : Collection

Remarks

Each Font object represents a font that's used in the presentation.

The Fonts collection is used by the Geni Wizard to determine whether any of the fonts in the specified presentation won't be supported when Genigraphics images the slides. If you just want to set character formatting for a particular bullet or text range, use the Font property to return the Font object for the bullet or text range.

The Genigraphics wizard enables users to transmit their presentations directly to Genigraphics for conversion into film slides, overhead transparencies, or other specialized media formats. For more information about the services Genigraphics provides, visit the [F:Microsoft.Office.Interop.PowerPoint.Fonts.NA#GenigraphicsWebsite#HardcodedURL]. This service may not be available outside the United States.

Examples

Use the Fonts property to return the Fonts collection. The following example displays the number of fonts used in the active presentation.

MsgBox ActivePresentation.Fonts.Count

Use Fonts(index), where index is the font's name or index number, to return a single Font object. The following example checks to see whether font one in the active presentation is embedded in the presentation.

If ActivePresentation.Fonts(1).Embedded = True Then

    MsgBox "Font 1 is embedded"

See Also

Reference

Fonts Members

Microsoft.Office.Interop.PowerPoint Namespace