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.
1Pick a module
Text & Rich Text
DemoText
6 demo slides · text_genSlide*.pptx
Open module SShapes
DemoShape
3 demo slides · shape_genSlide*.pptx
Open module IImages
DemoImage
5 demo slides (+SVG) · image_genSlide*.pptx
Open module TbTables
DemoTable
11 demo slides · table_genSlide*.pptx
Open module MMasters & Placeholders
DemoMaster
6 demo slides · master_genSlide*.pptx
Open module MpMedia — Video & Audio
DemoMedia
3 demo slides + large-media test · media_genSlide*.pptx
Open module CCharts — addChart API
DemoChart
21 demo + 7 dev slides · chart_genSlide*.pptx
Open module CtCharts — typed helpers
DemoChartByChartType
21 demo + 7 dev slides · chart_genSlide*.pptx
Open module2How 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.