Freigeben über


TextType.Space Eigenschaft

Definition

Leerzeichen

Stellt das folgende Attribut im Schema dar: 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)

Eigenschaftswert

Gibt zurück StringValue.

Attribute

Hinweise

Die folgenden Informationen aus dem INTERNATIONALEN ECMA-Standard ECMA-376 können bei der Arbeit mit dieser Klasse nützlich sein.

Gibt an, wie Leerzeichen für den Inhalt dieses Elements mithilfe der W3C-Regeln für die Aufbewahrung von Speicherplatz behandelt werden sollen.

Betrachten Sie die folgende Ausführung, die in einem WordprocessingML-Dokument enthalten ist:

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

Obwohl bei der Ausführung auf jeder Seite des Textinhalts drei Leerzeichen vorhanden sind, wurde dieser Leerraum nicht ausdrücklich als signifikant markiert. Daher wird sie entfernt, wenn diese Ausführung dem Dokument hinzugefügt wird.

Die möglichen Werte für dieses Attribut werden durch den Typ im Namespace definiert.

Gilt für: