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

تحرير خصائص PPSM باستخدام C#

أنشئ تطبيقات .NET الخاصة بك لتعديل الخصائص المضمنة والمخصصة في ملفات العروض التقديمية باستخدام واجهات برمجة التطبيقات من جانب الخادم.

تعديل خصائص PPSM عبر C#

باستخدام Aspose.Slides for .NET ، يمكن للمطورين الوصول إلى قيم الخصائص المضمنة بالإضافة إلى الخصائص المخصصة وتعديلها. يمكن للمطورين استخدام خاصية DocumentProperties المكشوفة بواسطة كائن Presentation للوصول إلى خصائص المستند الخاصة بملف العرض التقديمي.

تعديل PPSM الخصائص المضمنة - C#


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

// 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.ppsm", SaveFormat.Ppsm);

إضافة خصائص مخصصة إلى PPSM - 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.ppsm", SaveFormat.Ppsm);

كيفية استخراج البيانات الوصفية لـ PPSM عبر C#

هذه هي خطوات استخراج البيانات الوصفية من ملفات PPSM.

  1. إنشاء فئة العرض التقديمي بمسار ملف PPSM

  2. احصل على كائن DocumentProperties المرتبط بالعرض التقديمي

  3. حلقة فوق العناصر الموجودة في كائن DocumentProperties

  4. الوصول إلى الخصائص المخصصة وتعديلها

تنسيقات البيانات الوصفية المدعومة الأخرى

باستخدام C# ، يمكنك أيضًا معالجة البيانات الوصفية للعديد من التنسيقات الأخرى بما في ذلك.