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)

Usage

Dim Range As Object
Dim returnValue As InlineShape
Dim inlineShapes1 As InlineShapes
returnValue = inlineShapes1.AddHorizontalLineStandard(Range)

Syntax

Function AddHorizontalLineStandard( _
    <InAttribute()> Optional ByRef Range As Object _
) As InlineShape
InlineShape AddHorizontalLineStandard(
    [In, Optional] ref object Range
);
public: InlineShape^ AddHorizontalLineStandard(
    &Object^ Range
);
public InlineShape AddHorizontalLineStandard(
    /*in*/System.Object Range
);
function AddHorizontalLineStandard(
     Range : Object
) : InlineShape;

Parameters

  • Range
    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.

Remarks

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

InlineShapes Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

InlineShapes Members