PPT PPTX ODP POT ppsx
Aspose.Slides  for .NET
PPTM

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

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

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

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

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


// Instantiate the Presentation class that represents the Presentation
Presentation presentation = new Presentation("presentation.pptm");

// Create a reference to IDocumentProperties object associated with Presentation
IDocumentProperties documentProperties = presentation.DocumentProperties;

// Set the builtin properties
documentProperties.Author = "Aspose.Slides for .NET";
documentProperties.Title = "Modifying Presentation Properties";
documentProperties.Subject = "Aspose Subject";
documentProperties.Comments = "Aspose Description";
documentProperties.Manager = "Aspose Manager";

// Save your presentation to a file
presentation.Save("DocumentProperties_out.pptm", SaveFormat.Pptm);

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


// Instantiate the Presentation class
Presentation presentation = new Presentation();

// Getting Document Properties
IDocumentProperties documentProperties = presentation.DocumentProperties;

// Adding Custom properties
documentProperties["New Custom"] = 12;
documentProperties["My Name"] = "Aspose Metadata Editor";
documentProperties["Custom"] = 124;

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

// Removing selected property
documentProperties.RemoveCustomProperty(getPropertyName);

// Save your presentation to a file
presentation.Save("CustomDocumentProperties_out.pptm", SaveFormat.Pptm);

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

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

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

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

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

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

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

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