Table of Contents

Class TableExamples

Namespace
FileFormat.Slides.Examples
Assembly
FileFormat.Slides.Examples.dll

Provides examples for creating tables in PowerPoint presentations.

public class TableExamples
Inheritance
TableExamples
Inherited Members

Constructors

TableExamples()

Initializes a new instance of the TableExamples class. Prepares the directory 'Presentations/New' for storing or loading PowerPoint(PPT or PPTX) presentations at the root of the project. If the directory doesn't exist, it is created. If it already exists, existing files are deleted, and the directory is cleaned up.

public TableExamples()

Methods

AddColumnWithCellValuesInAnExistingTableInASlide(string, string)

Adds a new column with cell values to an existing table in a slide of a PowerPoint presentation.

public void AddColumnWithCellValuesInAnExistingTableInASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located.

filename string

The name of the PowerPoint file.

AddRowInAnExistingTableInASlide(string, string)

Adds a new row to an existing table in a slide of a PowerPoint presentation.

public void AddRowInAnExistingTableInASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located.

filename string

The name of the PowerPoint file.

CreateSimpleTableInASlide(string, string)

Creates a simple table in a slide of a PowerPoint presentation.

public void CreateSimpleTableInASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located. Default is 'Presentations/Existing'.

filename string

The name of the PowerPoint file. Default is 'test.pptx'.

CreateTableWithCellStylingsInASlide(string, string)

Creates a table with stylings applied to cells in a slide of a PowerPoint presentation.

public void CreateTableWithCellStylingsInASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located. Default is 'Presentations/Existing'.

filename string

The name of the PowerPoint file. Default is 'test.pptx'.

CreateTableWithRowStylingsInASlide(string, string)

Creates a table with stylings applied to rows in a slide of a PowerPoint presentation.

public void CreateTableWithRowStylingsInASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located. Default is 'Presentations/Existing'.

filename string

The name of the PowerPoint file. Default is 'test.pptx'.

CreateTableWithTableStylingsInASlide(string, string)

Creates a table with stylings applied in a slide of a PowerPoint presentation.

public void CreateTableWithTableStylingsInASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located. Default is 'Presentations/Existing'.

filename string

The name of the PowerPoint file. Default is 'test.pptx'.

CreateTableWithThemeInASlide(string, string)

Creates a table with a predefined theme applied to the entire table in a slide of a PowerPoint presentation.

public void CreateTableWithThemeInASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located.

filename string

The name of the PowerPoint file.