Get Started
Documentation

SetShd

SetShd(oApiFill)

Specify the shading which shall be applied to the extents of the current table.

Parameters:

Name Type Description
oApiFill ApiFill

Example

Copy code
builder.CreateFile("pptx");
var oPresentation = Api.GetPresentation();
var oTable = Api.CreateTable(2, 4);
var oFill = Api.CreateSolidFill(Api.CreateRGBColor(520, 64, 1));
oTable.SetShd(oFill);
var oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);
builder.SaveFile("pptx", "SetShd.pptx");
builder.CloseFile();

Resulting document