Copy-ready C# examples for every demo module

Every NetCorePpt demo lives in NetCorePptxTest/Modules as a plain C# class. The pages below extract the code blocks straight from those sources and pair them with bilingual notes — each snippet is the real, compiling code used by the regression suite.

Download all demo sources in one archive

All NetCorePpt demo classes — DemoText, DemoShape, DemoImage, DemoTable, DemoMaster, DemoMedia, DemoChart and DemoChartByChartType — plus the shared Constants and ConstantsTable helpers they build on. These are the exact sources the code blocks on this page are taken from: unzip and drop the classes into your own project, or read them end to end.

examples_docs/Modules.zip NetCorePptxTest/Modules · C# sources shared helpers included

Tip: every sample block can be expanded with "+". Follow the code side-by-side with your own PptxGen project.

1Pick a module

2How the demos are wired

Slide factories, pure C#

Each genSlideNN / devSlideNN method adds one or more slides to the PptxGen instance passed in as its parameter.

Driven by MSTest

A PptxXxxTest class calls DemoXxx.genSlideNN(pres); then SaveAndCompare("….pptx") writes the file and byte-compares it with the PptxGen.js reference output.

Verbatim snippets

The code blocks on these pages are sliced line-by-line from the Modules sources, so they always match the current API — no drift, no paraphrasing.