Partager via


IEditorOperations.InsertNewLine Method

Inserts a new line at the current caret position.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

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

Return Value

Type: Boolean
true if the edit succeeded, otherwise false.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace