Skip to main content

SetMargins

Specifies the page margins for all the pages in this section. Alias for ApiSection#SetPageMargins.

Syntax

expression.SetMargins(left, top, right, bottom);

expression - A variable that represents a ApiSection class.

Parameters

NameRequired/OptionalData typeDefaultDescription
leftRequiredtwipsThe left margin width measured in twentieths of a point (1/1440 of an inch).
topRequiredtwipsThe top margin height measured in twentieths of a point (1/1440 of an inch).
rightRequiredtwipsThe right margin width measured in twentieths of a point (1/1440 of an inch).
bottomRequiredtwipsThe bottom margin height measured in twentieths of a point (1/1440 of an inch).

Returns

boolean