
## RulerGrid class

Contains elements that specify the settings of the page's rulers and grid.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Del](#del) | int | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| [XRulerDensity](#xrulerdensity) | RulerDensity | Specifies the horizontal subdivisions on the ruler for the page. |
| [YRulerDensity](#yrulerdensity) | RulerDensity | Specifies the vertical subdivisions on the ruler for the page. |
| [XRulerOrigin](#xrulerorigin) | DoubleValue | Specifies the zero point on the x-axis (horizontal) ruler for the page. |
| [XGridDensity](#xgriddensity) | GridDensity | Specifies the zero point on the y-axis (vertical) ruler for the page. |
| [YGridDensity](#ygriddensity) | GridDensity | Specifies the type of vertical grid to use for a page. |
| [XGridSpacing](#xgridspacing) | DoubleValue | Specifies the distance between horizontal lines in a fixed grid (that is, a RulerGrid element where the XGridDensity ele |
| [YGridSpacing](#ygridspacing) | DoubleValue | Specifies the distance between vertical lines in a fixed grid (that is, a RulerGrid element where the YGridDensity eleme |
| [XGridOrigin](#xgridorigin) | DoubleValue | Specifies the horizontal coordinate of the grid origin for a page. |
| [YGridOrigin](#ygridorigin) | DoubleValue | Specifies the vertical origin of the grid on the page. |
| [YRulerOrigin](#yrulerorigin) | DoubleValue | Specifies the zero point on the y-axis (vertical) ruler for the page. |

### RulerGrid.Del property {#del}

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

**Type:** int

### RulerGrid.XRulerDensity property {#xrulerdensity}

Specifies the horizontal subdivisions on the ruler for the page.

**Type:** RulerDensity

### RulerGrid.YRulerDensity property {#yrulerdensity}

Specifies the vertical subdivisions on the ruler for the page.

**Type:** RulerDensity

### RulerGrid.XRulerOrigin property {#xrulerorigin}

Specifies the zero point on the x-axis (horizontal) ruler for the page.

**Type:** DoubleValue

### RulerGrid.XGridDensity property {#xgriddensity}

Specifies the zero point on the y-axis (vertical) ruler for the page.

**Type:** GridDensity

### RulerGrid.YGridDensity property {#ygriddensity}

Specifies the type of vertical grid to use for a page.

**Type:** GridDensity

### RulerGrid.XGridSpacing property {#xgridspacing}

Specifies the distance between horizontal lines in a fixed grid (that is, a RulerGrid element where the XGridDensity element is set to 0).

**Type:** DoubleValue

### RulerGrid.YGridSpacing property {#ygridspacing}

Specifies the distance between vertical lines in a fixed grid (that is, a RulerGrid element where the YGridDensity element is set to 0).

**Type:** DoubleValue

### RulerGrid.XGridOrigin property {#xgridorigin}

Specifies the horizontal coordinate of the grid origin for a page.

**Type:** DoubleValue

### RulerGrid.YGridOrigin property {#ygridorigin}

Specifies the vertical origin of the grid on the page.

**Type:** DoubleValue

### RulerGrid.YRulerOrigin property {#yrulerorigin}

Specifies the zero point on the y-axis (vertical) ruler for the page.

**Type:** DoubleValue
