Specifies the border which will be displayed above a set of paragraphs which have the same set of paragraph border settings.
Name | Type | Description |
sType | BorderType | The border style. |
nSize | pt_8 | The width of the current top border measured in eighths of a point. |
nSpace | pt | The spacing offset above 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. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); oParagraph.AddText("This is the first paragraph. We will add a thick orange border above it."); oParagraph.SetTopBorder("single", 24, 0, 255, 111, 61); builder.SaveFile("docx", "SetTopBorder.docx"); builder.CloseFile();