ReadOnlyRecommended

ProtectionManager.ReadOnlyRecommended property

获取或设置只读推荐。可读写的布尔值。

public bool ReadOnlyRecommended { get; set; }  

Examples

以下示例代码演示了如何使用 Aspose.Slides 在 C# 中将 PowerPoint 演示文稿设置为只读。

[C#]  
using (Presentation pres = new Presentation())  
{  
	pres.ProtectionManager.ReadOnlyRecommended = true;  
	pres.Save("ReadOnlyPresentation.pptx", SaveFormat.Pptx);  
}  

See Also