# topMargin property

Sets or gets the margin for the top of the document.

## Syntax

```HRESULT value = object.put_topMargin( v);HRESULT value = object.get_topMargin(* p);
```

## Property values

Type: VARIANT

the top margin of the body, in pixels.

15

Default value.

## Remarks

If the value is set to "0" or "", the top margin is on the top edge of the window or frame.

By default, when you set the value of this property, the opposite margin is set to the same value.