IEditorOperations.ExtendSelection 方法

到指定的位置扩展当前选择范围。

命名空间:  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 安全性

请参阅

参考

IEditorOperations 接口

Microsoft.VisualStudio.Text.Operations 命名空间