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
'宣告
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.ITextViewLine
Line for which to get the selection.
Return Value
Type: System.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.