Speaker Notes
addNotes(): attach speaker notes to any slide.
0Namespaces used by the C# samples
using NetCorePpt; // PptxGen, Slide
using NetCorePpt.CoreInterfaces; // option objects: TextProps* / ShapeProps / ImageProps / TableProps / HAlign / VAlign ...
using NetCorePpt.CoreEnums; // ShapeType, ChartType, MediaType, ShadowType, BulletType, DashType, SCHEME_COLORS ...
using TableRow = System.Collections.Generic.List<NetCorePpt.CoreInterfaces.TableCell>;
Speaker Notes can be included on any Slide.
Syntax
PptxGenJS · typescript
slide.addNotes('TEXT');NetCorePpt · C#
slide.addNotes("TEXT");Example: JavaScript
PptxGenJS · typescript
let pres = new PptxGenJS();
let slide = pptx.addSlide();
slide.addText('Hello World!', { x:1.5, y:1.5, fontSize:18, color:'363636' });
slide.addNotes('This is my favorite slide!');
pptx.writeFile('Sample Speaker Notes');NetCorePpt · C#
// NOTE: the upstream sample declares `pres` but then calls `pptx` - kept as `pptx` here.
var pptx = new PptxGen();
var slide = pptx.addSlide();
slide.addText("Hello World!", new TextPropsOptions { x = 1.5, y = 1.5, fontSize = 18, color = "363636" });
slide.addNotes("This is my favorite slide!");
await pptx.exportToFile("Sample Speaker Notes");