Поделиться через


SpacingPercent Class

Spacing Percent.When the object is serialized out as xml, its qualified name is a:spcPct.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Drawing.SpacingPercent

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

Syntax

'Declaration
Public Class SpacingPercent _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As SpacingPercent
public class SpacingPercent : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

21.1.2.2.11 spcPct (Spacing Percent)

This element specifies the amount of white space that is to be used between lines and paragraphs in the form of a percentage of the text size. The text size that is used to calculate the spacing here is the text for each run, with the largest text size having precedence. That is if there is a run of text with 10 point font and within the same paragraph on the same line there is a run of text with a 12 point font size then the 12 point should be used to calculate the spacing to be used.

[Example: Consider the DrawingML shown below.

<p:txBody>
…
<a:p>
<a:pPr …>
<a:spcBef>
<a:spcPct val="200%"/>
</a:spcBef>
</a:pPr>
    …
<a:t>Sample Text</a:t>
…
</a:p>
…
</p:txBody>

The above paragraph of text is formatted to have a spacing before the paragraph text. This spacing is 200% of the size of the largest text on each line. end example]

Parent Elements

lnSpc (§21.1.2.2.5); spcAft (§21.1.2.2.9); spcBef (§21.1.2.2.10)

Attributes

Description

val (Value)

Specifies the percentage of the size that the white space should be.

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

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

See Also

Reference

SpacingPercent Members

DocumentFormat.OpenXml.Drawing Namespace