RubyProperties-Klasse
Phonetic Guide Properties.When the object is serialized out as xml, its qualified name is w:rubyPr.
Vererbungshierarchie
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Wordprocessing.RubyProperties
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(PhoneticGuideTextFontSize))> _
<ChildElementInfoAttribute(GetType(RubyAlign))> _
<ChildElementInfoAttribute(GetType(PhoneticGuideBaseTextSize))> _
<ChildElementInfoAttribute(GetType(Dirty))> _
<ChildElementInfoAttribute(GetType(PhoneticGuideRaise))> _
<ChildElementInfoAttribute(GetType(LanguageId))> _
Public Class RubyProperties _
Inherits OpenXmlCompositeElement
'Usage
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
Hinweise
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 1. Ausgabe]
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:
to?to?kyo?kyo?
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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.