com.aspose.words
Class PhoneticGuide

java.lang.Object
    extended by com.aspose.words.PhoneticGuide

public class PhoneticGuide 
extends java.lang.Object

Represents Phonetic Guide.

Example:

Shows how to get properties of the phonetic guide.
Document doc = new Document(getMyDir() + "Phonetic guide.docx");

RunCollection runs = doc.getFirstSection().getBody().getFirstParagraph().getRuns();
// Use phonetic guide in the Asian text.
Assert.assertEquals(true, runs.get(0).isPhoneticGuide());

PhoneticGuide phoneticGuide = runs.get(0).getPhoneticGuide();
Assert.assertEquals("base", phoneticGuide.getBaseText());
Assert.assertEquals("ruby", phoneticGuide.getRubyText());

Property Getters/Setters Summary
java.lang.StringgetBaseText()
           Gets base text of the phonetic guide.
java.lang.StringgetRubyText()
           Gets ruby text of the phonetic guide.
 

Property Getters/Setters Detail

getBaseText

public java.lang.String getBaseText()
Gets base text of the phonetic guide.

Example:

Shows how to get properties of the phonetic guide.
Document doc = new Document(getMyDir() + "Phonetic guide.docx");

RunCollection runs = doc.getFirstSection().getBody().getFirstParagraph().getRuns();
// Use phonetic guide in the Asian text.
Assert.assertEquals(true, runs.get(0).isPhoneticGuide());

PhoneticGuide phoneticGuide = runs.get(0).getPhoneticGuide();
Assert.assertEquals("base", phoneticGuide.getBaseText());
Assert.assertEquals("ruby", phoneticGuide.getRubyText());

getRubyText

public java.lang.String getRubyText()
Gets ruby text of the phonetic guide.

Example:

Shows how to get properties of the phonetic guide.
Document doc = new Document(getMyDir() + "Phonetic guide.docx");

RunCollection runs = doc.getFirstSection().getBody().getFirstParagraph().getRuns();
// Use phonetic guide in the Asian text.
Assert.assertEquals(true, runs.get(0).isPhoneticGuide());

PhoneticGuide phoneticGuide = runs.get(0).getPhoneticGuide();
Assert.assertEquals("base", phoneticGuide.getBaseText());
Assert.assertEquals("ruby", phoneticGuide.getRubyText());

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.