IsWriteProtected
PresentationInfo.IsWriteProtected property
获取一个值,该值指示绑定的表示是否被写保护。
public NullableBool IsWriteProtected { get; }
评论
如果演示文稿是受密码保护打开,属性值等于 NotDefined。
例子
[C#]
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(presentationFilePath);
if (info.IsWriteProtected == NullableBool.True)
{
Console.WriteLine("The presentation '" + presentationFilePath + "' is write protected by a password.");
}
也可以看看
- enum NullableBool
- class PresentationInfo
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides