从指定的中选择定位点到活动点,将脱字号移至新的活动点选定内容并确保选定内容中指定的选择模式和使选定的范围可见。
命名空间: Microsoft.VisualStudio.Text.Operations
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
Sub SelectAndMoveCaret ( _
anchorPoint As VirtualSnapshotPoint, _
activePoint As VirtualSnapshotPoint, _
selectionMode As TextSelectionMode _
)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint,
TextSelectionMode selectionMode
)
void SelectAndMoveCaret(
VirtualSnapshotPoint anchorPoint,
VirtualSnapshotPoint activePoint,
TextSelectionMode selectionMode
)
abstract SelectAndMoveCaret :
anchorPoint:VirtualSnapshotPoint *
activePoint:VirtualSnapshotPoint *
selectionMode:TextSelectionMode -> unit
function SelectAndMoveCaret(
anchorPoint : VirtualSnapshotPoint,
activePoint : VirtualSnapshotPoint,
selectionMode : TextSelectionMode
)
参数
anchorPoint
类型:Microsoft.VisualStudio.Text.VirtualSnapshotPoint定位点新的选择。
activePoint
类型:Microsoft.VisualStudio.Text.VirtualSnapshotPoint活动点插入符号的新选择和位置。
selectionMode
类型:Microsoft.VisualStudio.Text.Editor.TextSelectionMode新选定的选择模式。
备注
这是滚动所需的最小内确保选定大小可见。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。