InlineShape.HorizontalLineFormat property (Word)

Returns a HorizontalLineFormat object that contains the horizontal line formatting for the specified InlineShape object. Read-only.

Syntax

expression. HorizontalLineFormat

expression A variable that represents a 'InlineShape' object.

Example

This example sets the length of the specified horizontal line to 50% of the window width.

ActiveDocument.InlineShapes(1).HorizontalLineFormat _ 
 .PercentWidth = 50

See also

InlineShape Object

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.