TextSelection.Untabify 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据用户的制表符设置,将行开头的制表符转换为空格。
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