PhoneticGuide

Run.PhoneticGuide property

获得PhoneticGuide对象.

public PhoneticGuide PhoneticGuide { get; }

例子

演示如何获取拼音指南的属性。

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

RunCollection runs = doc.FirstSection.Body.FirstParagraph.Runs;
// 在亚洲文本中使用拼音指南。
Assert.AreEqual(true, runs[0].IsPhoneticGuide);
Assert.AreEqual("base", runs[0].PhoneticGuide.BaseText);
Assert.AreEqual("ruby", runs[0].PhoneticGuide.RubyText);

也可以看看