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

Return Value

Type: System.Nullable<VirtualSnapshotSpan>
The selection on line.

.NET Framework Security

See Also

Reference

ITextSelection Interface

Microsoft.VisualStudio.Text.Editor Namespace