Partager via


IEditorOperations.ConvertSpacesToTabs Method

Converts spaces to tabs in the selection, or, if the selection is empty, on the line the caret is on.

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

Syntax

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

Return Value

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

Remarks

Only spaces immediately preceding a tab stop will be converted to tabs.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace