Share via


TextType.Space Property

Definition

space

Represents the following attribute in the schema: xml:space

[DocumentFormat.OpenXml.SchemaAttr(1, "space")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.SpaceProcessingModeValues> Space { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.SpaceProcessingModeValues> Space { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(1, "space")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.SpaceProcessingModeValues>? Space { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("xml:space")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.SpaceProcessingModeValues>? Space { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.SpaceProcessingModeValues>? Space { get; set; }
member this.Space : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.SpaceProcessingModeValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(1, "space")>]
member this.Space : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.SpaceProcessingModeValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("xml:space")>]
member this.Space : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.SpaceProcessingModeValues> with get, set
Public Property Space As EnumValue(Of SpaceProcessingModeValues)

Property Value

Returns StringValue.

Attributes

Remarks

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

Specifies how white space should be handled for the contents of this element using the W3C space preservation rules.

Consider the following run contained within a WordprocessingML document:

<w:r>  
  <w:t>significant whitespace   </w:t>  
</w:r>  

Although there are three spaces on each side of the text content in the run, that white space has not been specifically marked as significant. Therefore, it is removed when this run is added to the document.

The possible values for this attribute are defined by the type in the namespace.

Applies to