SetShd
function SetShd(sType: ShdType | ApiFill = null, r: byte = null, g: byte = null, b: byte = null): void
Description
Specifies the shading which shall be applied to the extents of the current table.
Parameters
The shading type applied to the contents of the current table. Can be ShdType or ApiFill.
Red color component value.
Green color component value.
Blue color component value.
Returns
void
Try It
var oPresentation = Api.GetPresentation();
var oTable = Api.CreateTable(2, 4);
oTable.SetShd("clear", 255, 111, 61);
var oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);