Bookmark.PhoneticGuide Method (String, WdPhoneticGuideAlignmentType, Int32, Int32, String)


Adds phonetic guides to the Bookmark control.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

void PhoneticGuide(
	string Text,
	WdPhoneticGuideAlignmentType Alignment,
	int Raise = 0,
	int FontSize = 0,
	string FontName = ""


Type: System.String

The phonetic text to add.

Type: Microsoft.Office.Interop.Word.WdPhoneticGuideAlignmentType

WdPhoneticGuideAlignmentType. The alignment of the added phonetic text.

Type: System.Int32

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

Type: System.Int32

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 Bookmark control.

Type: System.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 Bookmark control.

For information on optional parameters, see Optional Parameters in Office Solutions.

The following code example adds a phonetic guide to the bookmark text "tres chic."

This example is for a document-level customization.

private void BookmarkPhoneticGuide()
    Microsoft.Office.Tools.Word.Bookmark bookmark1 =
    bookmark1.Text = "tres chic";

    bookmark1.PhoneticGuide("tray sheek",
        11, 7, "Arial");
Return to top