Header menu logo fable-electron-docs-api

Margins Type

Constructors

Constructor Description

Margins(?marginType, ?top, ?bottom, ?left, ?right)

Full Usage: Margins(?marginType, ?top, ?bottom, ?left, ?right)

Parameters:
    ?marginType : MarginType - Can be default, none, printableArea, or custom. If custom is chosen, you will also need to specify top, bottom, left, and right.
    ?top : float - The top margin of the printed web page, in pixels.
    ?bottom : float - The bottom margin of the printed web page, in pixels.
    ?left : float - The left margin of the printed web page, in pixels.
    ?right : float - The right margin of the printed web page, in pixels.

Returns: Margins
?marginType : MarginType

Can be default, none, printableArea, or custom. If custom is chosen, you will also need to specify top, bottom, left, and right.

?top : float

The top margin of the printed web page, in pixels.

?bottom : float

The bottom margin of the printed web page, in pixels.

?left : float

The left margin of the printed web page, in pixels.

?right : float

The right margin of the printed web page, in pixels.

Returns: Margins

Instance members

Instance member Description

this.bottom

Full Usage: this.bottom

The bottom margin of the printed web page, in pixels.

this.left

Full Usage: this.left

The left margin of the printed web page, in pixels.

this.marginType

Full Usage: this.marginType

Can be default, none, printableArea, or custom. If custom is chosen, you will also need to specify top, bottom, left, and right.

this.right

Full Usage: this.right

The right margin of the printed web page, in pixels.

this.top

Full Usage: this.top

The top margin of the printed web page, in pixels.

Type something to start searching.