次の方法で共有


RubyProperties Class

Phonetic Guide Properties.When the object is serialized out as xml, its qualified name is w:rubyPr.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Wordprocessing.RubyProperties

Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'宣言
<ChildElementInfoAttribute(GetType(PhoneticGuideTextFontSize))> _
<ChildElementInfoAttribute(GetType(RubyAlign))> _
<ChildElementInfoAttribute(GetType(PhoneticGuideBaseTextSize))> _
<ChildElementInfoAttribute(GetType(Dirty))> _
<ChildElementInfoAttribute(GetType(PhoneticGuideRaise))> _
<ChildElementInfoAttribute(GetType(LanguageId))> _
Public Class RubyProperties _
    Inherits OpenXmlCompositeElement
'使用
Dim instance As RubyProperties
[ChildElementInfoAttribute(typeof(PhoneticGuideTextFontSize))]
[ChildElementInfoAttribute(typeof(RubyAlign))]
[ChildElementInfoAttribute(typeof(PhoneticGuideBaseTextSize))]
[ChildElementInfoAttribute(typeof(Dirty))]
[ChildElementInfoAttribute(typeof(PhoneticGuideRaise))]
[ChildElementInfoAttribute(typeof(LanguageId))]
public class RubyProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • RubyAlign <w:rubyAlign>

  • PhoneticGuideTextFontSize <w:hps>

  • PhoneticGuideRaise <w:hpsRaise>

  • PhoneticGuideBaseTextSize <w:hpsBaseText>

  • LanguageId <w:lid>

  • Dirty <w:dirty>

[ISO/IEC 29500-1 初版]

17.3.3.28 rubyPr (Phonetic Guide Properties)

This element specifies a set of properties which determine the behavior and appearance of a phonetic guide within the document.

[Example: Consider the following two runs, each containing a phonetic guide:

t?東t?東ky?京ky?京

The properties for both of these phonetic guides are as follows:

<w:r>
<w:ruby>
<w:rubyPr>
<w:rubyAlign w:val="distributeSpace" />
<w:hps w:val="16" />
<w:hpsRaise w:val="20" />
<w:hpsBaseText w:val="22" /> 
      <w:lid w:val="ja-JP" /> 
    </w:rubyPr>
…
</w:ruby>
</w:r>

The phonetic guide properties specify that the guide text must be:

  • Distributed across the top (using the rubyAlign element)

  • 8 point font face (using the hps element)

  • 10 points above the base text (using the hpaRaise element)

  • Japanese (using the lid element)

As well, the phonetic guide properties specify that the base text must be:

  • 11 point font face (using the hpsBaseText element)

end example]

Parent Elements

ruby (§17.3.3.25)

Child Elements

Subclause

dirty (Invalidated Field Cache)

§17.3.3.8

hps (Phonetic Guide Text Font Size)

§17.3.3.10

hpsBaseText (Phonetic Guide Base Text Font Size)

§17.3.3.11

hpsRaise (Distance Between Phonetic Guide Text and Phonetic Guide Base Text)

§17.3.3.12

lid (Language ID for Phonetic Guide)

§17.3.3.14

rubyAlign (Phonetic Guide Text Alignment)

§17.3.3.26

[Note: The W3C XML Schema definition of this element's content model (CT_RubyPr) is located in §A.1. end note]

© ISO/IEC29500: 2008. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RubyProperties Members

DocumentFormat.OpenXml.Wordprocessing Namespace