Créez et modifiez des présentations dans le navigateur, en ouvrant et enregistrant des fichiers PowerPoint et OpenDocument.
Pourquoi c’est utile
- Ouvre et enregistre .pptx, .ppt, .odp
- Diapositives, formes et graphiques
- Diaporama
Où il trouve sa place
- Présentations commerciales
- Formation
- Rapports

Exemple
<PresentationEditor Presentation="_deck" Height="24rem" ReadOnly="true" ShowMenuBar="false" ShowNotes="false" ShowStatusBar="false" />
@code {
private readonly Presentation _deck = BuildDeck();
private static Presentation BuildDeck()
{
var p = new Presentation();
var title = p.CreateSlide(SlideLayout.TitleSlide);
((AutoShape)title.Elements[0]).Paragraphs = [TextParagraph.Of("Read-only deck", align: TextAlign.Center)];
((AutoShape)title.Elements[1]).Paragraphs = [TextParagraph.Of("Browse, present and print", align: TextAlign.Center)];
p.Slides.Add(title);
var content = p.CreateSlide(SlideLayout.TitleAndContent);
((AutoShape)content.Elements[0]).Paragraphs = [TextParagraph.Of("Nothing can be changed")];
((AutoShape)content.Elements[1]).Paragraphs =
[
new TextParagraph { Bullet = BulletKind.Bullet, Runs = [new TextRun { Text = "The slide list and the slide show work" }] },
new TextParagraph { Bullet = BulletKind.Bullet, Runs = [new TextRun { Text = "Saving and printing work" }] }
];
p.Slides.Add(content);
return p;
}
} Un court fragment. Ajoutez @using RayCraft.Blazor.Components à votre page et utilisez un mode de rendu interactif.
Fait partie de RayCraft Complete.