Share via


TextSelection.Untabify Method

Converts tabs found at the beginning of the line to spaces according to the user's tab settings. Tabs found later in the line are not converted to spaces.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Sub Untabify
void Untabify()
void Untabify()
abstract Untabify : unit -> unit 
function Untabify()

Examples

Sub UnTabifyExample()
   ' Before running this example, open a code document.
   Dim objSel As TextSelection = DTE.ActiveDocument.Selection
   ' Select all code in open document.
   objSel.SelectAll()
   ' Convert spaces in selection to Tab characters.
   objSel.Tabify()
   MsgBox("Converting tabs back to spaces...")
   objSel.Untabify()
End Sub

.NET Framework Security

See Also

Reference

TextSelection Interface

EnvDTE Namespace