Creates a complex color scheme selecting from one of the available schemes.
Name | Type | Description |
sSchemeColorId | SchemeColorId | The color scheme identifier. |
builder.CreateFile("pptx"); 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); builder.SaveFile("pptx", "CreateSchemeColor.pptx"); builder.CloseFile();