SetBottomBorder

SetBottomBorder(sType, nSize, nSpace, r, g, b)

Inherited From: ApiParaPr#SetBottomBorder

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:

Name Type Description
sType BorderType

The border style.

nSize pt_8

The width of the current bottom border measured in eighths of a point.

nSpace pt

The spacing offset below the paragraph measured in points used to place this border.

r byte

Red color component value.

g byte

Green color component value.

b byte

Blue color component value.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("This is the first paragraph. We will add a thin orange border below it.");
oParagraph.SetBottomBorder("single", 8, 0, 255, 111, 61);
builder.SaveFile("docx", "SetBottomBorder.docx");
builder.CloseFile();

Resulting document