Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets or sets a WdLineEndingType constant indicating how Microsoft Office Word marks the line and paragraph breaks in documents saved as text files.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Public Property TextLineEnding As WdLineEndingType
public WdLineEndingType TextLineEnding { get; set; }
Property Value
Type: WdLineEndingType
One of the WdLineEndingType values.
Examples
The following code example sets the document to enter a carriage return for line and paragraph breaks when the document is saved as a text file. To use this example, run it from the ThisDocument class in a document-level project.
Private Sub DocumentTextLineEnding()
Me.TextLineEnding = Word.WdLineEndingType.wdCROnly
End Sub
private void DocumentTextLineEnding()
{
this.TextLineEnding = Word.WdLineEndingType.wdCROnly;
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.