편집

다음을 통해 공유


InlineShapes.AddHorizontalLine(String, Object) Method

Definition

Adds a horizontal line based on an image file to the current document.

public Microsoft.Office.Interop.Word.InlineShape AddHorizontalLine (string FileName, ref object Range);
abstract member AddHorizontalLine : string * obj -> Microsoft.Office.Interop.Word.InlineShape
Public Function AddHorizontalLine (FileName As String, Optional ByRef Range As Object) As InlineShape

Parameters

FileName
String

Required String. The file name of the image you want to use for the horizontal line.

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

Returns

Remarks

To add a horizontal line that isn't based on an existing image file, use the AddHorizontalLineStandard(Object) method.

Applies to