CreateSchemeColor
function CreateSchemeColor(sSchemeColorId: SchemeColorId = null): ApiSchemeColor
Description
Creates a complex color scheme selecting from one of the available schemes.
Parameters
The color scheme identifier.
Returns
ApiSchemeColor
Try It
var oPresentation = Api.GetPresentation();
var oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
var oSchemeColor = Api.CreateSchemeColor("dk1");
var oFill = Api.CreateSolidFill(oSchemeColor);
var oStroke = Api.CreateStroke(0, Api.CreateNoFill());
var oDrawing = Api.CreateShape("curvedUpArrow", 300 * 36000, 130 * 36000, oFill, oStroke);
oSlide.AddObject(oDrawing);
oDrawing.SetPosition(608400, 1267200);