共用方式為


ITextSelection.Select Method (SnapshotSpan, Boolean)

Selects the text in the specified selection span.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'宣告
Sub Select ( _
    selectionSpan As SnapshotSpan, _
    isReversed As Boolean _
)
void Select(
    SnapshotSpan selectionSpan,
    bool isReversed
)
void Select(
    SnapshotSpan selectionSpan, 
    bool isReversed
)
abstract Select : 
        selectionSpan:SnapshotSpan * 
        isReversed:bool -> unit 
function Select(
    selectionSpan : SnapshotSpan, 
    isReversed : boolean
)

Parameters

  • isReversed
    Type: System.Boolean
    true if the selection was made in a reverse direction, otherwise false.

Remarks

In a reversed selection, the active point is Span.Start and the anchor point is Span.End. In a non-reversed selection, the active point is span.end and the anchor point is Span.Start.

.NET Framework Security

See Also

Reference

ITextSelection Interface

Select Overload

Microsoft.VisualStudio.Text.Editor Namespace