Share via


Font.NameAscii Property

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

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

Syntax

'Declaration
Property NameAscii As String
    Get
    Set
'Usage
Dim instance As Font
Dim value As String

value = instance.NameAscii

instance.NameAscii = value
string NameAscii { get; set; }

Property Value

Type: System.String
String

Remarks

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

Examples

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

Reference

Font Interface

Font Members

Microsoft.Office.Interop.PowerPoint Namespace