Untabify Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Converts tabs to spaces in a selection.

Syntax

object.Untabify

Parameters

object

An expression that evaluates to a TextSelection object.

Remarks

This method applies only to the current selection, not to the whole document. To convert tabs to spaces in the entire document, select the whole document using the SelectAll method and then use the Untabify method.

Example

The following example converts tabs to spaces in a selection:

ActiveDocument.Selection.Untabify

See Also   IndentSize property, Tabify method, TabSize property, VisibleWhitespace property.