GridOriginHorizontal Property

Applies To

Options object.

Description

Returns or sets the point, relative to the left edge of the page, where you want the invisible grid for drawing, moving, and resizing AutoShapes to begin. Read/write Single.

See Also

GridDistanceHorizontal property, GridDistanceVertical property, GridOriginVertical property, SnapToGrid property.

Example

This example sets the horizontal and vertical point of origin for the grid, sets the horizontal and vertical distance between gridlines, and then enables the Snap to grid feature.

With Options
    .GridOriginHorizontal = InchesToPoints(1)
    .GridOriginVertical = InchesToPoints(2)
    .GridDistanceHorizontal = InchesToPoints(0.1)
    .GridDistanceVertical = InchesToPoints(0.1)
    .SnapToGrid = True
End With