ملاحظات العرض

إضافة وإزالة ملاحظات الشريحة

يدعم Aspose.Slides الآن إزالة ملاحظات الشرائح من العرض. في هذا الموضوع، سنقدم هذه الميزة الجديدة المتمثلة في إزالة الملاحظات بالإضافة إلى إضافة شرائح ملاحظات أسلوب من أي عرض. يوفر Aspose.Slides لـ C++ ميزة إزالة ملاحظات أي شريحة بالإضافة إلى إضافة أسلوب للملاحظات الموجودة. يمكن للمطورين إزالة الملاحظات بالطرق التالية:

  • إزالة ملاحظات شريحة معينة من العرض.
  • إزالة ملاحظات جميع الشرائح في العرض.

إزالة الملاحظات من شريحة معينة

يمكن إزالة ملاحظات إحدى الشرائح المحددة كما هو موضح في المثال أدناه:

For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Slides-for-C
// The path to the documents directory.
const String templatePath = u"../templates/AccessSlides.pptx";
const String outPath = u"../out/RemoveNotesAtSpecificSlide.pptx";
// Instantiate Presentation class
SharedPtr<Presentation>pres = MakeObject<Presentation>(templatePath);
// Removing notes of all slides
SharedPtr<INotesSlideManager> mgr;
//Removing notes from first slide
mgr = pres->get_Slides()->idx_get(0)->get_NotesSlideManager();
mgr->RemoveNotesSlide();
// Save presentation to disk
pres->Save(outPath, Aspose::Slides::Export::SaveFormat::Pptx);

إزالة الملاحظات من جميع الشرائح

يمكن إزالة ملاحظات جميع الشرائح في العرض كما هو موضح في المثال أدناه:

For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Slides-for-C
// The path to the documents directory.
const String templatePath = u"../templates/AccessSlides.pptx";
const String outPath = u"../out/RemovedAllNotes.pptx";
// Instantiate Presentation class
SharedPtr<Presentation>pres = MakeObject<Presentation>(templatePath);
// Removing notes of all slides
SharedPtr<INotesSlideManager> mgr ;
for (int i = 0; i < pres->get_Slides()->get_Count(); i++)
{
mgr = pres->get_Slides()->idx_get(i)->get_NotesSlideManager();
mgr->RemoveNotesSlide();
}
// Save presentation to disk
pres->Save(outPath, Aspose::Slides::Export::SaveFormat::Pptx);

إضافة NotesStyle

تمت إضافة خاصية NotesStyle إلى واجهة IMasterNotesSlide وفئة MasterNotesSlide على التوالي. تحدد هذه الخاصية أسلوب نص الملاحظات. يتم توضيح التنفيذ في المثال أدناه.

For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Slides-for-C
// The path to the documents directory.
const String outPath = u"../out/AddNotesSlideWithNotesStyle_out.pptx";
const String templatePath = u"../templates/AccessSlides.pptx";
SharedPtr<Presentation> pres = MakeObject<Presentation>(templatePath);
//Accessing Master note slide
SharedPtr<IMasterNotesSlide> notesMaster = pres->get_MasterNotesSlideManager()->get_MasterNotesSlide();
if (notesMaster != NULL)
{
// Get MasterNotesSlide text style
SharedPtr<ITextStyle> notesStyle = notesMaster->get_NotesStyle();
//Set symbol bullet for the first level paragraphs
SharedPtr<IParagraphFormat> paragraphFormat = notesStyle->GetLevel(0);
paragraphFormat->get_Bullet()->set_Type(BulletType::Symbol);
}
pres->Save(outPath, Aspose::Slides::Export::SaveFormat::Pptx);