IsWriteProtected

IPresentationInfo.IsWriteProtected属性

获取一个值,该值指示绑定的演示文稿是否受写保护。

public NullableBool IsWriteProtected { get; }

备注

如果演示文稿在打开时受密码保护,则属性值等于 NotDefined。请参阅 NullableBool 枚举。

示例

[C#]
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(presentationFilePath);
if (info.IsWriteProtected == NullableBool.True)
{
    Console.WriteLine("演示文稿 '" + presentationFilePath + "' 受密码保护,无法写入。");
}

另见