ITextSelection.GetSelectionOnTextViewLine(ITextViewLine) 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.
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
.