SyntaxFactory.Whitespace Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Whitespace(String) |
Creates a trivia with kind WhitespaceTrivia containing the specified text. |
Whitespace(String, Boolean) |
Obsolete.
|
Whitespace(String)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
Creates a trivia with kind WhitespaceTrivia containing the specified text.
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
Parameters
- text
- String
The text of the whitespace. Any text can be specified here, however only specific whitespace characters are recognized by the parser.
Returns
Applies to
Whitespace(String, Boolean)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
Caution
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
Parameters
- text
- String
- elastic
- Boolean
Returns
- Attributes
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.