Freigeben über


CarriageReturn-Klasse

Carriage Return.When the object is serialized out as xml, its qualified name is w:cr.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.EmptyType
        DocumentFormat.OpenXml.Wordprocessing.CarriageReturn

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

Syntax

'Declaration
Public Class CarriageReturn _
    Inherits EmptyType
'Usage
Dim instance As CarriageReturn
public class CarriageReturn : EmptyType

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

17.3.3.4 cr (Carriage Return)

This element specifies that a carriage return shall be placed at the current location in the run content. A carriage return is the equivalent of Unicode character 000D, and is used to end the current line of text in WordprocessingML.

The behavior of a carriage return in run content shall be identical to a break character with null type and clear attributes, which shall end the current line and find the next available line on which to continue.

[Example: Consider the following sentence in a WordprocessingML document:

This is another simple sentence.

Normally, just as shown above, this sentence would be displayed on a single line as it is not long enough to require line breaking (given the width of the current page). However, if a carriage return were inserted after the word another, as follows:

<w:r>
<w:t>This is another</w:t>
<w:cr/>
<w:t xml:space="preserve"> simple sentence.</w:t>
</w:r>

This would imply that this carriage return character must force a line break, and break the line after that word:

This is another
simple sentence.

The carriage return character forced the following text to be restarted on the next available line in the document. end example]

Parent Elements

r (§22.1.2.87); r (§17.3.2.25)

[Note: The W3C XML Schema definition of this element's content model (CT_Empty) is located in §A.1. end note]

© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

CarriageReturn-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace