Share via


SpacingBetweenLines.BeforeLines Property

Definition

Spacing Above Paragraph IN Line Units

Represents the following attribute in the schema: w:beforeLines

[DocumentFormat.OpenXml.SchemaAttr(23, "beforeLines")]
public DocumentFormat.OpenXml.Int32Value BeforeLines { get; set; }
public DocumentFormat.OpenXml.Int32Value BeforeLines { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "beforeLines")]
public DocumentFormat.OpenXml.Int32Value? BeforeLines { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:beforeLines")]
public DocumentFormat.OpenXml.Int32Value? BeforeLines { get; set; }
public DocumentFormat.OpenXml.Int32Value? BeforeLines { get; set; }
member this.BeforeLines : DocumentFormat.OpenXml.Int32Value with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "beforeLines")>]
member this.BeforeLines : DocumentFormat.OpenXml.Int32Value with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:beforeLines")>]
member this.BeforeLines : DocumentFormat.OpenXml.Int32Value with get, set
Public Property BeforeLines As Int32Value

Property Value

Returns Int32Value.

Attributes

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.

Applies to