IEditorOperations.TransposeCharacter Method ()


Transposes the character at the cursor with the next character.

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

bool TransposeCharacter()

Return Value

Type: System.Boolean

true if the edit succeeded, otherwise false.

If the cursor is at the start of the line, this method transposes the first two characters. If the cursor is at the end of the line, it transposes the last two characters.

Return to top