SetBottomBorder
function SetBottomBorder(
sType: BorderType = null,
nSize: pt_8 = null,
nSpace: pt = null,
r: byte = null,
g: byte = null,
b: byte = null,
): void
Description
Specifies the border which will be displayed below a set of paragraphs which have the same paragraph border settings. The paragraphs of the same style going one by one are considered as a single block, so the border is added to the whole block rather than to every paragraph in this block.
Parameters
The border style.
The width of the current bottom border measured in eighths of a point.
The spacing offset below the paragraph measured in points used to place this border.
Red color component value.
Green color component value.
Blue color component value.
Returns
void
Try It
var oDocument = Api.GetDocument();
var oMyStyle = oDocument.CreateStyle("My document style");
var oParaPr = oMyStyle.GetParaPr();
oParaPr.SetBottomBorder("single", 24, 0, 255, 111, 61);
var oParagraph = oDocument.GetElement(0);
oParagraph.SetStyle(oMyStyle);
oParagraph.AddText("This is the first paragraph. ");
oParagraph.AddText("The paragraph properties styled above set a border below it.");