Freigeben über


AlignScripts-Klasse

Align Scripts.When the object is serialized out as xml, its qualified name is m:alnScr.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Math.OnOffType
        DocumentFormat.OpenXml.Math.AlignScripts

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

Syntax

'Declaration
Public Class AlignScripts _
    Inherits OnOffType
'Usage
Dim instance As AlignScripts
public class AlignScripts : OnOffType

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

22.1.2.4 alnScr (Align Scripts)

This element specifies the alignment of scripts in the subscript/superscript function. When 1 or true, subscripts and superscripts are aligned to each other. When 0 or false, they are kerned to the shape of the base. If this element is omitted, scripts are not aligned. In other words, when the element is absent, the default is for the sub-superscript object to not align the superscript and subscript with each other.

When the element is present and the val attribute is absent, the default value of the val attribute is 1 meaning that this property is applied.

[Example: Example (OFF): ; Example (ON): .

The XML representation of the second example above is:

<m:sSubSup>
<m:sSubSupPr>
<m:alnScrm:val="1"/>
</m:sSubSupPr>
  <m:e>
<m:r>
<m:t>f</m:t>
</m:r>
</m:e>
  <m:sub>
<m:r>
<m:rPr>
<m:scr m:val="roman"/>
<m:sty m:val="p"/>
</m:rPr>
<m:t>2</m:t>
</m:r>
</m:sub>
  <m:sup>
<m:r>
<m:rPr>
<m:scr m:val="roman"/>
<m:sty m:val="p"/>
</m:rPr>
<m:t>3</m:t>
</m:r>
</m:sup>
</m:sSubSup>

end example]

Parent Elements

sSubSupPr (§22.1.2.104)

Attributes

Description

val (value)

Specifies a binary value for the property defined by the parent XML element.

A value of 1 or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present.

A value of 0 or false specifies that the property shall be explicitly turned off. This is implied when the parent element is not present.

The possible values for this attribute are defined by the ST_OnOff simple type (§22.9.2.7).

[Note: The W3C XML Schema definition of this element's content model (CT_OnOff) is located in §A.6.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.

Siehe auch

Referenz

AlignScripts-Member

DocumentFormat.OpenXml.Math-Namespace