共用方式為


IEditorOperations.DeleteFullLine 方法

如果有選取範圍存在,則刪除選取範圍碰到的所有文字行 (包括分行符號字元)。 否則刪除插入號所在的行 (包括分行符號字元)。

命名空間:  Microsoft.VisualStudio.Text.Operations
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Function DeleteFullLine As Boolean
bool DeleteFullLine()
bool DeleteFullLine()
abstract DeleteFullLine : unit -> bool
function DeleteFullLine() : boolean

傳回值

類型:Boolean
如果編輯成功則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

IEditorOperations 介面

Microsoft.VisualStudio.Text.Operations 命名空間