Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Margins Class

Contains margin settings.

#Declaration

TypeScript
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

TypeScript
bottom: number

#Property Value

Type Description
number

The margin value, in twips.

#left Property

The margin value for the left edge.

#Declaration

TypeScript
left: number

#Property Value

Type Description
number

The margin value, in twips.

#right Property

The margin value for the right edge.

#Declaration

TypeScript
right: number

#Property Value

Type Description
number

The margin value, in twips.

#top Property

The margin value for the top edge.

#Declaration

TypeScript
top: number

#Property Value

Type Description
number

The margin value, in twips.