SetBottomBorder(sType, nSize, nSpace, r, g, b)
Specify 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.
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph; oParagraph = oDocument.GetElement(0); oParagraph.AddText("This is the first paragraph. We will add a thin red border below it."); oParagraph.SetBottomBorder("single", 8, 0, 255, 0, 0); builder.SaveFile("docx", "SetBottomBorder.docx"); builder.CloseFile();
© Ascensio System SIA 2017. All rights reserved