IsWriteProtected
PresentationInfo.IsWriteProtected 属性
获取一个值,该值指示绑定的演示文稿是否受写保护。
public NullableBool IsWriteProtected { get; }
备注
如果演示文稿受到打开密码的保护,则属性值等于 NotDefined。
示例
[C#]
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(presentationFilePath);
if (info.IsWriteProtected == NullableBool.True)
{
Console.WriteLine("演示文稿 '" + presentationFilePath + "' 受到密码的写保护。");
}
另请参阅
- enum NullableBool
- class PresentationInfo
- namespace Aspose.Slides
- assembly Aspose.Slides