RootDirectoryClsid

IPptOptions.RootDirectoryClsid property

表示存储在根目录条目中的对象类 GUID (CLSID)。可用于 COM 激活文档的应用程序。 默认值为“64818D11-4F9B-11CF-86EA-00AA00B929E8”,对应于“Microsoft Powerpoint.Slide.8”。

public Guid RootDirectoryClsid { get; set; }

例子

[C#]
using (Presentation pres = new Presentation())
{
    PptOptions pptOptions = new PptOptions();
    
    /// 将 CLSID 设置为 'Microsoft Powerpoint.Show.8'
    pptOptions.RootDirectoryClsid = new Guid("64818D10-4F9B-11CF-86EA-00AA00B929E8");
    
    pres.Save("pres.ppt", SaveFormat.Ppt, pptOptions);
}

也可以看看