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

C# kullanarak PPSM özelliklerini düzenleyin

Sunucu tarafı API’lerini kullanarak sunum dosyalarındaki Yerleşik ve Özel özellikleri değiştirmek için kendi .NET uygulamalarınızı oluşturun.

C# aracılığıyla PPSM Özelliklerini değiştirin

Geliştiriciler, Aspose.Slides for .NET ürününü kullanarak, özel özelliklerin yanı sıra yerleşik özelliklerin değerlerine erişebilir ve bunları değiştirebilir. Geliştiriciler, sunum dosyasının belge özelliklerine erişmek için Presentation nesnesi tarafından sunulan DocumentProperties özelliğini kullanabilir.

PPSM Yerleşik Özelliklerini Değiştirin - 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# ürününe Özel Özellikler ekleyin


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

C# Aracılığıyla PPSM Meta Verilerini Çıkarma

Bunlar, PPSM dosyalarından Meta Verileri Çıkarma adımlarıdır.

  1. PPSM dosyasının yolu ile Presentation sınıfını örneklendirin

  2. Presentation ile ilişkili DocumentProperties nesnesini alın

  3. DocumentProperties nesnesindeki öğeler üzerinde döngü yapın

  4. Özel özelliklere erişin ve değiştirin

Diğer Desteklenen Meta Veri Biçimleri

C# kullanarak, aşağıdakiler de dahil olmak üzere diğer birçok biçimin meta verilerini de değiştirebilirsiniz.