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
- selectionSpan
Type: Microsoft.VisualStudio.Text.SnapshotSpan
The SnapshotSpan of text to select in the underlying text buffer.
- 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
- 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.