TextSelection.Untabify 方法

定义

根据用户的制表符设置,将行开头的制表符转换为空格。

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 ()
属性

示例

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  

适用于