共用方式為


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 命名空間