到指定的位置扩展当前选择范围。
命名空间: Microsoft.VisualStudio.Text.Operations
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
Sub ExtendSelection ( _
newEnd As Integer _
)
void ExtendSelection(
int newEnd
)
void ExtendSelection(
int newEnd
)
abstract ExtendSelection :
newEnd:int -> unit
function ExtendSelection(
newEnd : int
)
参数
newEnd
类型:Int32选定内容将扩展到的新字符位置。
异常
异常 | 条件 |
---|---|
ArgumentOutOfRangeException | newEnd 小于 0。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。