Notatka
Contents
[
Hide
]
Ten artykuł demonstruje, jak dodawać, odczytywać, usuwać i aktualizować slajdy notatek przy użyciu Aspose.Slides for C++.
Dodaj slajd notatek
Utwórz slajd notatek i przypisz do niego tekst.
static void AddNote()
{
auto presentation = MakeObject<Presentation>();
auto slide = presentation->get_Slide(0);
auto notesSlide = slide->get_NotesSlideManager()->AddNotesSlide();
slide->get_NotesSlideManager()->get_NotesSlide()->get_NotesTextFrame()->set_Text(u"My note");
presentation->Dispose();
}
Uzyskaj dostęp do slajdu notatek
Odczytaj tekst z istniejącego slajdu notatek.
static void AccessNote()
{
auto presentation = MakeObject<Presentation>();
auto slide = presentation->get_Slide(0);
auto notesSlide = slide->get_NotesSlideManager()->AddNotesSlide();
auto notes = notesSlide->get_NotesTextFrame()->get_Text();
presentation->Dispose();
}
Usuń slajd notatek
Usuń slajd notatek powiązany ze slajdem.
static void RemoveNote()
{
auto presentation = MakeObject<Presentation>();
auto slide = presentation->get_Slide(0);
auto notesSlide = slide->get_NotesSlideManager()->AddNotesSlide();
slide->get_NotesSlideManager()->RemoveNotesSlide();
presentation->Dispose();
}
Zaktualizuj tekst notatek
Zmień tekst slajdu notatek.
static void UpdateNoteText()
{
auto presentation = MakeObject<Presentation>();
auto slide = presentation->get_Slide(0);
auto notesSlide = slide->get_NotesSlideManager()->AddNotesSlide();
slide->get_NotesSlideManager()->get_NotesSlide()->get_NotesTextFrame()->set_Text(u"Old");
slide->get_NotesSlideManager()->get_NotesSlide()->get_NotesTextFrame()->set_Text(u"Updated");
presentation->Dispose();
}