跳到主要内容

SetBottomMargin

Sets the bottom margin of the sheet.

Syntax

expression.SetBottomMargin(nPoints);

expression - A variable that represents a ApiWorksheet class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nPointsRequirednumberThe bottom margin size measured in points.

Returns

This method doesn't return any data.

Example

This example sets the bottom margin of the sheet.

var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetBottomMargin(25.1);
var nBottomMargin = oWorksheet.GetBottomMargin();
oWorksheet.GetRange("A1").SetValue("Bottom margin: " + nBottomMargin + " mm");