Partager via


Range.PhoneticGuide Method (Word)

Adds phonetic guides to the specified range.

Syntax

expression .PhoneticGuide(Text, Alignment, Raise, FontSize, FontName)

expression Required. A variable that represents a Range object.

Parameters

Name

Required/Optional

Data Type

Description

Text

Required

String

The phonetic text to add.

Alignment

Optional

WdPhoneticGuideAlignmentType

The alignment of the added phonetic text.

Raise

Optional

Long

The distance (in points) from the top of the text in the specified range to the top of the phonetic text. If no value is specified, Microsoft Word automatically sets the phonetic text at an optimum distance above the specified range.

FontSize

Optional

Long

The font size to use for the phonetic text. If no value is specified, Word uses a font size 50 percent smaller than the text in the specified range.

FontName

Optional

String

The name of the font to use for the phonetic text. If no value is specified, Word uses the same font as the text in the specified range.

Remarks

For more information on using Word with East Asian languages, see Word features for East Asian languages.

Example

This example adds a phonetic guide to the selected phrase "tres chic."

Selection.Range.PhoneticGuide Text:="tray sheek", _ 
 Alignment:=wdPhoneticGuideAlignmentCenter, _ 
 Raise:=11, FontSize:=7

See Also

Concepts

Range Object

Range Object Members