다음을 통해 공유


InlineShapes.AddHorizontalLineStandard Method (Word)

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.

ActiveDocument.Paragraphs(5).Range _ 
 .InlineShapes.AddHorizontalLineStandard

See Also

Concepts

InlineShapes Collection Object

InlineShapes Object Members