Click or drag to resize

CSharpSyntaxNodeFindTrivia Method (Int32, Boolean)

Finds a descendant trivia of this node whose span includes the supplied position.

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
public SyntaxTrivia FindTrivia(
	int position,
	bool findInsideTrivia = false


Type: SystemInt32
The character position of the trivia relative to the beginning of the file.
findInsideTrivia (Optional)
Type: SystemBoolean
Whether to search inside structured trivia.

Return Value

Type: SyntaxTrivia
See Also