Share via


InlineShapes.AddHorizontalLineStandard Method

Adds a horizontal line to the current document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function AddHorizontalLineStandard ( _
    ByRef Range As Object _
) As InlineShape
'Usage
Dim instance As InlineShapes
Dim Range As Object
Dim returnValue As InlineShape

returnValue = instance.AddHorizontalLineStandard(Range)
InlineShape AddHorizontalLineStandard(
    ref Object Range
)

Parameters

  • Range
    Type: System.Object%
    Optional Object. The range above which Microsoft Word places the horizontal line. If this argument is omitted, Word places the horizontal line above the current selection.

Return Value

Type: Microsoft.Office.Interop.Word.InlineShape

Remarks

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

See Also

Reference

InlineShapes Interface

InlineShapes Members

Microsoft.Office.Interop.Word Namespace