Share via


ITextSelection.GetSelectionOnTextViewLine(ITextViewLine) Method

Definition

Get the selection on a particular ITextViewLine.

public:
 Nullable<Microsoft::VisualStudio::Text::VirtualSnapshotSpan> GetSelectionOnTextViewLine(Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ line);
public Microsoft.VisualStudio.Text.VirtualSnapshotSpan? GetSelectionOnTextViewLine (Microsoft.VisualStudio.Text.Formatting.ITextViewLine line);
abstract member GetSelectionOnTextViewLine : Microsoft.VisualStudio.Text.Formatting.ITextViewLine -> Nullable<Microsoft.VisualStudio.Text.VirtualSnapshotSpan>
Public Function GetSelectionOnTextViewLine (line As ITextViewLine) As Nullable(Of VirtualSnapshotSpan)

Parameters

line
ITextViewLine

Line for which to get the selection.

Returns

The selection on line.

Applies to