Get Started
Documentation

CreateSolidFill

CreateSolidFill(oUniColor) → {ApiFill}

Create a solid fill which allows to fill the object using a selected solid color as the object background.

Parameters:

Name Type Description
oUniColor ApiUniColor The color used for the element fill.

Returns:

Type
ApiFill

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFill, oStroke, oRGBColor;
oRGBColor = Api.CreateRGBColor(0, 255, 0);
oFill = Api.CreateSolidFill(oRGBColor);
oStroke = Api.CreateStroke(0, Api.CreateNoFill());
oWorksheet.AddShape("flowChartOnlineStorage", 60 * 36000, 35 * 36000, oFill, oStroke, 0, 2 * 36000, 1, 3 * 36000);
builder.SaveFile("xlsx", "CreateSolidFill.xlsx");
builder.CloseFile();

Resulting document