ITextSelection.GetSelectionOnTextViewLine Method
Get the selection on the specified ITextViewLine.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function GetSelectionOnTextViewLine ( _
line As ITextViewLine _
) As Nullable(Of VirtualSnapshotSpan)
Nullable<VirtualSnapshotSpan> GetSelectionOnTextViewLine(
ITextViewLine line
)
Nullable<VirtualSnapshotSpan> GetSelectionOnTextViewLine(
ITextViewLine^ line
)
abstract GetSelectionOnTextViewLine :
line:ITextViewLine -> Nullable<VirtualSnapshotSpan>
function GetSelectionOnTextViewLine(
line : ITextViewLine
) : Nullable<VirtualSnapshotSpan>
Parameters
line
Type: Microsoft.VisualStudio.Text.Formatting.ITextViewLineLine for which to get the selection.
Return Value
Type: Nullable<VirtualSnapshotSpan>
The selection on line.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.