TextSelection.Untabify Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts tabs to spaces in the selection according to the user's tab settings.
public:
void Untabify();
public:
void Untabify();
void Untabify();
[System.Runtime.InteropServices.DispId(51)]
public void Untabify ();
[<System.Runtime.InteropServices.DispId(51)>]
abstract member Untabify : unit -> unit
Public Sub Untabify ()
- Attributes
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