ArgumentSize Class
Argument Size.When the object is serialized out as xml, its qualified name is m:argSz.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Math.ArgumentSize
Namespace: DocumentFormat.OpenXml.Math
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class ArgumentSize _
Inherits OpenXmlLeafElement
'Usage
Dim instance As ArgumentSize
public class ArgumentSize : OpenXmlLeafElement
Remarks
[ISO/IEC 29500-1 1st Edition]
22.1.2.6 argSz (Argument Size)
This element specifies the size, or script level, of an argument. If the element is omitted, the default argument size is 0.
Whether the element is absent or present without the val attribute, the default value of the val attribute is always 0. However, this property does not specify an absolute size, rather it’s absolute to it’s starting size. Most arguments begin at the normal size which will be defined as 0 in the list below, but some begin, by default smaller or larger than the normal size. For instance, 1 represents that it is one size larger than normal, 2 represents that it is two sizes larger than normal, -1 represents that it is one size smaller than normal, and -2 represents that it is two sizes smaller than normal. The list below indicates the default starting sizes for each argument, if it is not in this list, then the size cannot be changed on that argument.
box base: 0
group-character base: 0
lower limit limit: -1
upper limit limit: -1
n-ary operator subscript: -1
n-ary operator superscript: -1
radical degree: -2
pre-sub-superscript subscript: -1
pre-sub-superscript superscript: -1
subscript subscript: -1
sub-supersript subscript: -1
sub-supersript superscript: -1
superscript superscript: -1
[Example: The following example contains three runs: regular mathematical text, a box object with the base at script size (val=-1) and a box object with the base at script-script size (val=-2).
The XML below shows argSz used in the middle box.
<m:box> <m:boxPr> <m:noBreak m:val="0"/> </m:boxPr> <m:e> <m:argPr> <m:argSz m:val="-1"/> </m:argPr> <m:r> <m:t>abc</m:t> </m:r> </m:e> </m:box>
Because the size is set to -1 on the degree argument, the degree argument is 1 size smaller normal.
end example]
Parent Elements |
---|
argPr (§22.1.2.5) |
Attributes |
Description |
---|---|
val (Value) |
Specifies a value between -2 and 2 for the property defined by the parent XML element. The positive or negative sign specifies in which direction to change argument size; the absolute value specifies by how much. The table below represents two cases in which argument size can be changed: superscripts and boxes. In the superscript object , by default the term has script-script size. Should the user wish for the to be shown at script size, val should be set to +1 (that is, one size larger). Should the user wish for to be shown at text size, val should be set to +2 (that is, two sizes larger). val of in Display Default +1 +2 val of Display Default -1 -2 The possible values for this attribute are defined by the ST_Integer2 simple type (§22.1.3.5). |
[Note: The W3C XML Schema definition of this element’s content model (CT_Integer2) is located in §A.6.1. end note]
© ISO/IEC29500: 2008.
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.