Partager via


Font.NameAscii Property (PowerPoint)

Returns or sets the font used for ASCII characters (characters with character set numbers within the range of 0 to 127). Read/write.

Syntax

expression .NameAscii

expression A variable that represents a Font object.

Return Value

String

Remarks

The default value of this property is Times New Roman. Use the Replace method to change the font that’s applied to all text and that appears in the Font box on the Font tab.

Example

This example sets the font used for ASCII characters in the title of the first slide to Century.

Application.ActivePresentation.Slides(1).Shapes.Title _

    .TextFrame.TextRange.Font.NameAscii = "Century"

See Also

Concepts

Font Object

Font Object Members