Compartilhar via


HorizontalLineFormat.PercentWidth Property (Word)

Returns or sets the length of the specified horizontal line expressed as a percentage of the window width. Read/write Single.

Syntax

expression .PercentWidth

expression An expression that returns a HorizontalLineFormat object.

Remarks

Setting this property also sets the WidthType property to wdHorizontalLinePercentWidth.

Example

This example adds a horizontal line and sets its length to 50% of the window width.

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

See Also

Concepts

HorizontalLineFormat Object Members

HorizontalLineFormat Object