Share via


Columns.Space Property

Spacing Between Equal Width Columns.Represents the attribte in schema: w:space

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

Syntax

'Declaration
<SchemaAttrAttribute(, "space")> _
Public Property Space As StringValue
    Get
    Set
'Usage
Dim instance As Columns
Dim value As StringValue

value = instance.Space

instance.Space = value
[SchemaAttrAttribute(, "space")]
public StringValue Space { get; set; }

Property Value

Type: DocumentFormat.OpenXml.StringValue
Returns UInt64Value.

Remarks

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

Specifies the spacing between the text columns in the current section.

If all the columns are not of equal width (the equalWidth attribute is not set), then this element is ignored, and the spacing after columns is defined by the space attribute on each of the col elements defined under the cols element.

Consider a section with column information defined as follows:

<w:cols w:num="3" w:space="1440"
  w:equalWidth="1">
  …
</w:cols>

This set of columns has an equalWidth value set to 1. Therefore, there are three equally sized columns, each with 1 inch of space after (space value of 1440 twentieths of a point).

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

See Also

Reference

Columns Class

Columns Members

DocumentFormat.OpenXml.Wordprocessing Namespace