# مشاهده یا ویرایش فراداده فایل‌های FODP با استفاده از C++

> کد منبع C++ برای ویرایش یا مشاهده فراداده قالب FODP.

Source: https://products.aspose.com/slides/fa/cpp/metadata/fodp/
Updated: 2023-04-25



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

با استفاده از Aspose.Slides for C++، توسعه‌دهندگان می‌توانند به مقادیر ویژگی‌های داخلی و همچنین ویژگی‌های سفارشی دسترسی داشته باشند و آن‌ها را تغییر دهند. توسعه‌دهندگان می‌توانند از ویژگی [DocumentProperties](https://reference.aspose.com/slides/cpp/aspose.slides/documentproperties/) که توسط شی Presentation در معرض دید قرار می‌گیرد برای دسترسی به ویژگی‌های سند فایل ارائه استفاده کنند.

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

```cpp

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

// 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.fodp", SaveFormat::Fodp);
```

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

```cpp

// 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.fodp", SaveFormat::Fodp);
```

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

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

کلاس Presentation را با مسیر فایل FODP نمونه سازی کنید

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

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

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

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