Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns or sets the width type for the specified HorizontalLineFormat object. Read/write WdHorizontalLineWidthType.
Syntax
expression. WidthType
expression Required. A variable that represents a 'HorizontalLineFormat' object.
Example
This example adds horizontal lines to the active document and compares their width types.
Dim temp As InlineShape
Set temp = _
ActiveDocument.InlineShapes.AddHorizontalLineStandard
MsgBox "AddHorizontalLineStandard - WidthType = " _
& temp.HorizontalLineFormat.WidthType
Set temp = _
ActiveDocument.InlineShapes.AddHorizontalLine _
("C:\My Documents\ArtsyRule.gif")
MsgBox "AddHorizontalLine - WidthType = " _
& temp.HorizontalLineFormat.WidthType
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.