Skip to main content

Margins Class

Contains margin settings.

Declaration

export class Margins

Remarks

var marginSize = richEdit.unitConverter.centimetersToTwips(1);
var margins = new DevExpress.RichEdit.Margins(
    marginSize, marginSize, marginSize, marginSize);
richEdit.document.sections.getByIndex(0).margins = margins;

Properties

bottom Property

The margin value for the bottom edge.

Declaration

bottom: number

Property Value

Type Description
number

The margin value, in twips.

left Property

The margin value for the left edge.

Declaration

left: number

Property Value

Type Description
number

The margin value, in twips.

right Property

The margin value for the right edge.

Declaration

right: number

Property Value

Type Description
number

The margin value, in twips.

top Property

The margin value for the top edge.

Declaration

top: number

Property Value

Type Description
number

The margin value, in twips.