Expand Minimize

IEditorOperations.TransposeLine Method

Transposes the line containing the cursor with the next line.

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

bool TransposeLine()

Return Value

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

If the cursor at the last line, this method transposes the last two lines.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft