IsWriteProtected
IPresentationInfo.IsWriteProtected property
获取一个值,该值指示绑定的表示是否被写保护。
public NullableBool IsWriteProtected { get; }
评论
如果演示文稿是受密码保护打开,属性值等于 NotDefined。 参见NullableBool
枚举。
例子
[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
- interface IPresentationInfo
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides