Range.PhoneticGuide Method
Adds phonetic guides to the specified range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub PhoneticGuide ( _
Text As String, _
Alignment As WdPhoneticGuideAlignmentType, _
Raise As Integer, _
FontSize As Integer, _
FontName As String _
)
'Usage
Dim instance As Range
Dim Text As String
Dim Alignment As WdPhoneticGuideAlignmentType
Dim Raise As Integer
Dim FontSize As Integer
Dim FontName As String
instance.PhoneticGuide(Text, Alignment, _
Raise, FontSize, FontName)
void PhoneticGuide(
string Text,
WdPhoneticGuideAlignmentType Alignment,
int Raise,
int FontSize,
string FontName
)
Parameters
- Text
Type: System.String
Required String. The phonetic text to add.
- Alignment
Type: Microsoft.Office.Interop.Word.WdPhoneticGuideAlignmentType
Optional WdPhoneticGuideAlignmentType. The alignment of the added phonetic text.
- Raise
Type: System.Int32
Optional Integer. 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
Type: System.Int32
Optional Integer. 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
Type: System.String
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.