PPT PPTX ODP POT ppsx
Aspose.Slides  for C++
POTM

ویرایش ویژگی‌های POTM با استفاده از C++

برنامه‌های C++ خود را بسازید تا ویژگی‌های داخلی و سفارشی را در فایل‌های ارائه با استفاده از APIهای سمت سرور تغییر دهید.

اصلاح ویژگی‌های POTM از طریق C++

با استفاده از Aspose.Slides for C++، توسعه‌دهندگان می‌توانند به مقادیر ویژگی‌های داخلی و همچنین ویژگی‌های سفارشی دسترسی داشته باشند و آن‌ها را تغییر دهند. توسعه‌دهندگان می‌توانند از ویژگی DocumentProperties که توسط شی Presentation در معرض دید قرار می‌گیرد برای دسترسی به ویژگی‌های سند فایل ارائه استفاده کنند.

اصلاح ویژگی‌های داخلی POTM - C++


// Instantiate the Presentation class that represents the Presentation
System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>(u"presentation.potm");

// Create a reference to IDocumentProperties object associated with Presentation
System::SharedPtr<IDocumentProperties> documentProperties = presentation->get_DocumentProperties();

// Set the builtin properties
documentProperties->set_Author(u"New Author");
documentProperties->set_Title(u"New Title");

// Save your presentation to a file
presentation->Save(u"DocumentProperties_out.potm", SaveFormat::Potm);

افزودن ویژگی های سفارشی به POTM - C++


// Instantiate the Presentation class
auto presentation = System::MakeObject<Presentation>();

// Getting Document Properties
auto documentProperties = presentation->get_DocumentProperties();

// Adding Custom properties
documentProperties->idx_set(u"New Custom", ObjectExt::Box<int32_t>(12));
documentProperties->idx_set(u"My Name", ObjectExt::Box<String>(u"Aspose Metadata Editor"));
documentProperties->idx_set(u"Custom", ObjectExt::Box<int32_t>(124));

// Getting property name at particular index
String getPropertyName = documentProperties->GetCustomPropertyName(2);

// Removing selected property
documentProperties->RemoveCustomProperty(getPropertyName);

// Saving presentation
presentation->Save(u"CustomDocumentProperties_out.potm", SaveFormat::Potm);

نحوه استخراج فراداده POTM از طریق C++

این مراحل برای استخراج فراداده از فایل‌های POTM است.

  1. کلاس Presentation را با مسیر فایل POTM نمونه سازی کنید

  2. دریافت شی DocumentProperties مرتبط با Presentation

  3. حلقه روی آیتم ها در شی DocumentProperties

  4. دسترسی و اصلاح خواص سفارشی

سایر فرمت های فراداده پشتیبانی شده

با استفاده از C++، می‌توانید ابرداده‌های بسیاری از قالب‌های دیگر از جمله را نیز دستکاری کنید.