TabHangingIndent Method

Microsoft Word Visual Basic

TabHangingIndent Method

       

Sets a hanging indent to a specified number of tab stops. Can be used to remove tab stops from a hanging indent if the value of Count is a negative number.

expression.TabHangingIndent(Count)

expression   Required. An expression that returns a Paragraph, Paragraphs, or ParagraphFormat object.

Count   Required Integer. The number of tab stops to indent (if positive) or the number of tab stops to remove from the indent (if negative).

Example

This example sets a hanging indent to the second tab stop for the first paragraph in the active document.

ActiveDocument.Paragraphs(1).TabHangingIndent(2)

This example moves the hanging indent back one tab stop for the first paragraph in the active document.

ActiveDocument.Paragraphs(1).TabHangingIndent(-1)