NotesSlide — Aspose.Slides FOSS for Java API Reference

Enumerations NotesSlide class représente une diapositive de notes dans une présentation. Elle étend BaseSlide et implémente INotesSlide.

Enumerations: org.aspose.slides.foss

import org.aspose.slides.foss.*;
public class NotesSlide extends BaseSlide implements INotesSlide

Enumerations

BaseSlide -> NotesSlide


Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
getNotesTextFrame()ITextFrameEnumerationsText frame contenant les notes du présentateur.
getHeaderFooterManager()INotesSlideHeaderFooterManagerEnumerationsHeader/footer manager pour la diapositive de notes.
getParentSlide()ISlideEnumerationsLa presentation slide à laquelle appartient cette notes slide.
getPresentation()IPresentationEnumerationsParent presentation.

Exemples d’utilisation

Lire les notes du présentateur

import org.aspose.slides.foss.*;

Presentation prs = new Presentation("deck.pptx");
ISlide slide = prs.getSlides().get(0);
INotesSlideManager mgr = slide.getNotesSlideManager();

INotesSlide notes = mgr.getNotesSlide();
if (notes != null) {
    ITextFrame tf = notes.getNotesTextFrame();
    System.out.println("Notes: " + tf.getText());
}

Ajouter ou mettre à jour les notes du présentateur

INotesSlide notes = slide.getNotesSlideManager().addNotesSlide();
notes.getNotesTextFrame().setText("Remember to demo the chart.");
prs.save("with-notes.pptx", SaveFormat.PPTX);

Voir aussi

 Français