SetRightBorder
function SetRightBorder(
sType: any = null,
nSize: any = null,
nSpace: any = null,
r: any = null,
g: any = null,
b: any = null,
): void
Description
Specifies the border which will be displayed at the right side of the page around the specified paragraph.
Parameters
- sType
any
null The border style.
- nSize
any
null The width of the current right border measured in eighths of a point.
- nSpace
any
null The spacing offset to the right of the paragraph measured in points used to place this border.
- r
any
null Red color component value.
- g
any
null Green color component value.
- b
any
null Blue color component value.
Returns
void
Try It
var oDocument = Api.GetDocument();
var oMyStyle = oDocument.CreateStyle("My document style");
var oParaPr = oMyStyle.GetParaPr();
oParaPr.SetRightBorder("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 at its right side.");