TextLineCollectionSelection.TryCreate(TextLineCollection, TextSpan, TextLineCollectionSelection) Method
Containing Type: TextLineCollectionSelection
Assembly: Roslynator.Core.dll
Creates a new TextLineCollectionSelection based on the specified list and span.
public static bool TryCreate(Microsoft.CodeAnalysis.Text.TextLineCollection lines, Microsoft.CodeAnalysis.Text.TextSpan span, out Roslynator.Text.TextLineCollectionSelection? selectedLines)
Parameters
lines TextLineCollection
span TextSpan
selectedLines TextLineCollectionSelection
Returns
True if the specified span contains at least one line; otherwise, false.