Vergleiche Folien
Vergleiche Zwei Folien
Die Equals-Methode wurde zur IBaseSlide-Schnittstelle und zur BaseSlide-Klasse hinzugefügt. Sie gibt true zurück für Folien / Layout-Folien / Master-Folien, die in ihrer Struktur und statischen Inhalte identisch sind.
Zwei Folien sind gleich, wenn alle Formen, Stile, Texte, Animationen und andere Einstellungen usw. übereinstimmen. Bei dem Vergleich werden keine einzigartigen Identifikatoren berücksichtigt, z. B. SlideId und dynamische Inhalte, z. B. der aktuelle Datumswert im Datumsplatzhalter.
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 templatePath1 = u"../templates/AccessSlides.pptx"; | |
const String templatePath2 = u"../templates/HelloWorld.pptx"; | |
// Instantiate Presentation class | |
SharedPtr<Presentation> presentation1 = MakeObject<Presentation>(templatePath1); | |
SharedPtr<Presentation> presentation2 = MakeObject<Presentation>(templatePath2); | |
for (int i = 0; i < presentation1->get_Masters()->get_Count(); i++) | |
{ | |
for (int j = 0; j <presentation2->get_Masters()->get_Count(); j++) | |
{ | |
if (presentation1->get_Masters()->idx_get(i)->Equals(presentation2->get_Masters()->idx_get(j))) | |
printf("SomePresentation1 MasterSlide# %d is equal to SomePresentation2 MasterSlide #%d : %d\n",i,j); | |
} | |
} | |