Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts tabs to spaces in the selection according to the user's tab settings.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Sub Untabify
'Usage
Dim instance As TextSelection
instance.Untabify()
void Untabify()
void Untabify()
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.