PhoneticGuide

Run.PhoneticGuide property

Gets a PhoneticGuide object.

public PhoneticGuide PhoneticGuide { get; }

Examples

Shows how to get properties of the phonetic guide.

Document doc = new Document(MyDir + "Phonetic guide.docx");

RunCollection runs = doc.FirstSection.Body.FirstParagraph.Runs;
// Use phonetic guide in the Asian text.
Assert.AreEqual(true, runs[0].IsPhoneticGuide);

PhoneticGuide phoneticGuide = runs[0].PhoneticGuide;
Assert.AreEqual("base", phoneticGuide.BaseText);
Assert.AreEqual("ruby", phoneticGuide.RubyText);

See Also