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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。