Format related procedures in class TextRange (PowerPoint VBA)

This page presents procedures from class TextRange related to the theme Format: BoundHeight, BoundWidth, Font and ParagraphFormat

BoundHeight

Returns the height (in points) of the text bounding box for the specified text frame.

Dim sngBoundHeight As Single
sngBoundHeight = ActivePresentation.Slides(1).Shapes(1).TextFrame.TextRange.BoundHeight

BoundWidth

Returns the width (in points) of the text bounding box for the specified text frame.

Dim sngBoundWidth As Single
sngBoundWidth = ActivePresentation.Slides(1).Shapes(1).TextFrame.TextRange.BoundWidth

Font

Returns a Font object that represents character formatting.

Dim fntFont As Font
Set fntFont = ActivePresentation.Slides(1).Shapes(1).TextFrame.TextRange.Font

ParagraphFormat

Returns a ParagraphFormat object that represents paragraph formatting for the specified text.

Dim pftParagraphFormat As ParagraphFormat
Set pftParagraphFormat = ActivePresentation.Slides(1).Shapes(1).TextFrame.TextRange.ParagraphFormat