SpacingBetweenLines.BeforeLines Property

Spacing Above Paragraph IN Line Units.Represents the attribte in schema: w:beforeLines

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

Syntax

'Declaration
<SchemaAttrAttribute(, "beforeLines")> _
Public Property BeforeLines As Int32Value
    Get
    Set
'Usage
Dim instance As SpacingBetweenLines
Dim value As Int32Value

value = instance.BeforeLines

instance.BeforeLines = value
[SchemaAttrAttribute(, "beforeLines")]
public Int32Value BeforeLines { get; set; }

Property Value

Type: DocumentFormat.OpenXml.Int32Value
Returns Int32Value.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the spacing that should be added before the first line in this paragraph in the document in line units.

The value of this attribute is specified in hundredths of a line.

If the beforeAutoSpacing attribute is also specified, then this attribute value is ignored. If this setting is never specified in the style hierarchy, then its value shall be zero (if needed).

Consider the following WordprocessingML paragraph:

<w:p>
  <w:pPr>
    <w:spacing w:beforeLines="100" /> 
  </w:pPr>
  ...
</w:p>

This paragraph shall have a minimum spacing above its first line of 1 line, although the actual spacing may be determined by the inter-line spacing or the spacing below the preceding paragraph, if either are greater.

The possible values for this attribute are defined by the ST_DecimalNumber simple type.

See Also

Reference

SpacingBetweenLines Class

SpacingBetweenLines Members

DocumentFormat.OpenXml.Wordprocessing Namespace