Delen via


TextSelection.Tabify Method

Converts spaces to tabs in the selection according to your tab settings.

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

Syntax

'Declaration
Sub Tabify
'Usage
Dim instance As TextSelection

instance.Tabify()
void Tabify()
void Tabify()
function Tabify()

Remarks

Converts contiguous spaces to tabs within the selected text according to the global setting for a tab's size.

Examples

Sub TabifyExample()
   ' 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()
End Sub

.NET Framework Security

See Also

Reference

TextSelection Interface

TextSelection Members

EnvDTE Namespace