CreateStroke
function CreateStroke(nWidth: EMU = null, oFill: ApiFill = null): ApiStroke
Description
Creates a stroke adding shadows to the element.
Parameters
The width of the shadow measured in English measure units.
The fill type used to create the shadow.
Returns
ApiStroke
Try It
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
var oRGBColor = Api.CreateRGBColor(51, 51, 51);
var oFill = Api.CreateSolidFill(oRGBColor);
var oStroke = Api.CreateStroke(5 * 36000, Api.CreateSolidFill(Api.CreateRGBColor(255, 111, 61)));
var oDrawing = Api.CreateShape("roundRect", 5930900, 395605, oFill, oStroke);
oParagraph.AddDrawing(oDrawing);