Table of contents
TOC
Collapse the table of content
Expand the table of content

TextRange2.Font Property (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns a Font object that represents character formatting for the TextRange2 object. Read-only.

Syntax

expression. Font

expression An expression that returns a TextRange2 object.

Return Value

Font

Example

This example sets the formatting for the text in shape one on slide one in the active PowerPoint presentation.

With ActivePresentation.Slides(1).Shapes(1) 
 With .TextFrame.TextRange2.Font 
 .Size = 48 
 .Name = "Palatino" 
 .Bold = True 
 .Color.RGB = RGB(255, 127, 255) 
 End With 
End With

See also

Concepts

TextRange2 Object

Other resources

TextRange2 Object Members

© 2018 Microsoft