مقارنة الشرائح

مقارنة شريحتين

تم إضافة طريقة Equals إلى واجهة IBaseSlide و فئة BaseSlide. وهي تُرجع قيمة true للشرائح / الشرائح التخطيطية / الشرائح الرئيسية التي تتطابق في هيكلها ومحتواها الثابت.

تكون الشريحتان متساويتين إذا كانت جميع الأشكال، الأنماط، النصوص، الرسوم المتحركة والإعدادات الأخرى، إلخ. لا تأخذ المقارنة في الاعتبار قيم المعرف الفريدة، مثل SlideId والمحتوى الديناميكي، مثل قيمة التاريخ الحالي في عنصر نائب التاريخ.

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);
}
}