InlineShapes.AddHorizontalLine Method
Adds a horizontal line based on an image file to the current document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function AddHorizontalLine ( _
FileName As String, _
ByRef Range As Object _
) As InlineShape
'Usage
Dim instance As InlineShapes
Dim FileName As String
Dim Range As Object
Dim returnValue As InlineShape
returnValue = instance.AddHorizontalLine(FileName, _
Range)
InlineShape AddHorizontalLine(
string FileName,
ref Object Range
)
Parameters
- FileName
Type: System.String
Required String. The file name of the image you want to use for the horizontal line.
- 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 that isn't based on an existing image file, use the AddHorizontalLineStandard method.