Compartilhar via


InlineShapes.AddHorizontalLineStandard Method

Word Developer Reference

Adds a horizontal line to the current document.

Syntax

expression.AddHorizontalLineStandard(Range)

expression   Required. A variable that represents an InlineShapes collection.

Parameters

Name Required/Optional Data Type Description
Range Optional Variant The range above which Microsoft Word places the horizontal line. If this argument is omitted, Word places the horizontal line above the current selection.

Remarks

To add a horizontal line based on an existing image file, use the AddHorizontalLine method.

Example

This example adds a horizontal line above the fifth paragraph in the active document.

Visual Basic for Applications
  ActiveDocument.Paragraphs(5).Range _
    .InlineShapes.AddHorizontalLineStandard

See Also