CreateSolidFill
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("pptx");
oPresentation = Api.GetPresentation();
oSlide = oPresentation.GetSlideByIndex(0);
oRGBColor = Api.CreateRGBColor(0, 255, 0);
oFill = Api.CreateSolidFill(oRGBColor);
oSlide.SetBackground(oFill);
builder.SaveFile("pptx", "CreateSolidFill.pptx");
builder.CloseFile();
Resulting document