Unindent Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Removes one indent from all lines in a selection.

Syntax

object.Unindent

Parameters

object

An expression that evaluates to a TextSelection object.

Remarks

The Unindent method has the same effect as pressing SHIFT+TAB.

The Unindent method affects all lines whether they are completely or partially within the selection. The IndentSize and TabSize properties determine the number of columns that are unindented.

Example

The following example removes one indent from all lines in a selection:

ActiveDocument.Selection.Unindent

See Also   DestructiveInsert method, Indent method, NewLine method, Overtype property, Text property.