Partager via


Rows.HorizontalPosition Property (Word)

Returns or sets the horizontal distance between the edge of the rows and the item specified by the RelativeHorizontalPosition property. Read/write Single.

Syntax

expression .HorizontalPosition

expression A variable that represents a Rows collection.

Remarks

This property can be a number that indicates a measurement in points, or can be one of the WdTablePosition constants. This property doesn't have any effect if the WrapAroundText property is False.

Example

This example aligns the first table in the active document horizontally with the right margin.

If ActiveDocument.Tables.Count >= 1 Then 
 With ActiveDocument.Tables(1).Rows 
 .RelativeHorizontalPosition = _ 
 wdRelativeHorizontalPositionMargin 
 .HorizontalPosition = wdTableRight 
 End With 
End If

See Also

Concepts

Rows Object Members

Rows Collection Object