共用方式為


SyntaxFactory.EndOfLine 方法

定義

多載

EndOfLine(String)

使用包含指定文字的 EndOfLineTrivia 種類建立 Trivia。

EndOfLine(String, Boolean)
已淘汰.

EndOfLine(String)

來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb

使用包含指定文字的 EndOfLineTrivia 種類建立 Trivia。

public:
 static Microsoft::CodeAnalysis::SyntaxTrivia EndOfLine(System::String ^ text);
public static Microsoft.CodeAnalysis.SyntaxTrivia EndOfLine (string text);
static member EndOfLine : string -> Microsoft.CodeAnalysis.SyntaxTrivia
Public Shared Function EndOfLine (text As String) As SyntaxTrivia

參數

text
String

行尾的文字。 您可以在這裡指定任何文字,不過只有歸位字元,剖析器會將換行字元辨識為行尾。

傳回

適用於

EndOfLine(String, Boolean)

來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb
來源:
SyntaxFactory.vb

警告

Use SyntaxFactory.EndOfLine or SyntaxFactory.ElasticEndOfLine

public:
 static Microsoft::CodeAnalysis::SyntaxTrivia EndOfLine(System::String ^ text, bool elastic);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use SyntaxFactory.EndOfLine or SyntaxFactory.ElasticEndOfLine")]
public static Microsoft.CodeAnalysis.SyntaxTrivia EndOfLine (string text, bool elastic);
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("Use SyntaxFactory.EndOfLine or SyntaxFactory.ElasticEndOfLine")>]
static member EndOfLine : string * bool -> Microsoft.CodeAnalysis.SyntaxTrivia
Public Shared Function EndOfLine (text As String, elastic As Boolean) As SyntaxTrivia

參數

text
String
elastic
Boolean

傳回

屬性

適用於