TextSelection.Tabify 方法

定义

根据制表符设置,将选定内容中的空格转换为制表符。

public:
 void Tabify();
public:
 void Tabify();
void Tabify();
[System.Runtime.InteropServices.DispId(50)]
public void Tabify ();
[<System.Runtime.InteropServices.DispId(50)>]
abstract member Tabify : unit -> unit
Public Sub Tabify ()
属性

示例

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  

注解

根据选项卡大小的全局设置,将文本选定内容中的相邻空格转换为制表符。

适用于