共用方式為


IEditorOperations.InsertNewLine 方法

在目前插入號位置插入新的一行。

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

語法

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

傳回值

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

.NET Framework 安全性

請參閱

參考

IEditorOperations 介面

Microsoft.VisualStudio.Text.Operations 命名空間