Table

The Table class, a dynamic feature within the OpenXMLOffice.Presentation library, provides developers with a robust toolset for effortlessly incorporating tables into PowerPoint presentations. This class offers extensive support for diverse table configurations, allowing users to create, modify, and enhance tables in a slide with ease. Developers can leverage the Table class to add new tables.

Basic Code Sample

Slide slide = powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK);
slide.AddTable(CreateTableRowPayload(10), new TableSetting()
{
	name = "New Table",
	widthType = TableSetting.WidthOptionValues.PERCENTAGE,
	tableColumnWidth = new() { 80, 20 },
	x = (uint)G.ConverterUtils.PixelsToEmu(10),
	y = (uint)G.ConverterUtils.PixelsToEmu(10)
});

TableSetting Options

TableRow Options

TableCell Options

TableBorderSettings Options

TableBorderSetting Options

WidthOptionValues *Width Type additional Details

Last updated