Get Started
Documentation

CreateSchemeColor

CreateSchemeColor(sSchemeColorId) → {ApiSchemeColor}

Create a complex color scheme selecting from one of the available schemes.

Parameters:

Name Type Description
sSchemeColorId SchemeColorId The solor scheme identifier.

Returns:

Type
ApiSchemeColor

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oFill, oStroke, oDrawing, oParagraph, oSchemeColor;
oParagraph = oDocument.GetElement(0);
oSchemeColor = Api.CreateSchemeColor("accent6");
oFill = Api.CreateSolidFill(oSchemeColor);
oStroke = Api.CreateStroke(0, Api.CreateNoFill());
oDrawing = Api.CreateShape("curvedUpArrow", 5930900, 595605, oFill, oStroke);
oParagraph.AddDrawing(oDrawing);
builder.SaveFile("docx", "CreateSchemeColor.docx");
builder.CloseFile();

Resulting document