SyntaxFactory.Whitespace 方法

定义

重载

Whitespace(String)

创建一个包含指定文本的 WhitespaceTrivia 类型的琐事。

Whitespace(String, Boolean)
已过时.

Whitespace(String)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

创建一个包含指定文本的 WhitespaceTrivia 类型的琐事。

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

参数

text
String

空格的文本。 可以在此处指定任何文本,但分析器只能识别特定的空格字符。

返回

适用于

Whitespace(String, Boolean)

Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb
Source:
SyntaxFactory.vb

注意

Use SyntaxFactory.Whitespace or SyntaxFactory.ElasticWhitespace

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

参数

text
String
elastic
Boolean

返回

属性

适用于