Document.TextLineEnding-Eigenschaft (2007 System)

Aktualisiert: November 2007

Ruft eine WdLineEndingType-Konstante ab, die angibt, wie in Microsoft Office Word in als Textdatei gespeicherten Dokumenten Zeilenumbrüche oder Absatzmarken markiert werden, oder legt diese Konstante fest.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

Public Property TextLineEnding As WdLineEndingType

Dim instance As Document
Dim value As WdLineEndingType

value = instance.TextLineEnding

instance.TextLineEnding = value
public WdLineEndingType TextLineEnding { get; set; }

Eigenschaftenwert

Typ: Microsoft.Office.Interop.Word.WdLineEndingType

Einer der WdLineEndingType-Werte.

Beispiele

Im folgenden Codebeispiel wird das Dokument so eingestellt, dass für Zeilenumbrüche und Absatzmarken ein Wagenrücklauf eingefügt wird, wenn das Dokument als Textdatei gespeichert wird.

Dieses Beispiel bezieht sich auf eine Anpassung auf Dokumentebene.

Private Sub DocumentTextLineEnding()
    Me.TextLineEnding = Word.WdLineEndingType.wdCROnly
End Sub 
private void DocumentTextLineEnding()
{
    this.TextLineEnding = Word.WdLineEndingType.wdCROnly;
}

Berechtigungen

Siehe auch

Referenz

Document-Klasse

Document-Member

Microsoft.Office.Tools.Word-Namespace