GemBox.Presentation
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    ModifyProtection Class

    Namespace:
    GemBox.Presentation
    Assembly:
    GemBox.Presentation.dll

    Represents the modification protection options for the PresentationDocument. Supported only in PPTX format.

    • C#
    • VB.NET
    public sealed class ModifyProtection
    Public NotInheritable Class ModifyProtection
    Inheritance:
    System.Object
    ModifyProtection
    Remarks

    Modification protection refers to a mode in which the presentation's contents should not be modified, and the presentation should not be resaved using the same file name.

    Properties

    HasPassword

    Returns true if PresentationDocument is protected with the password against modification and re-saving to the same file name.

    • C#
    • VB.NET
    public bool HasPassword { get; }
    Public ReadOnly Property HasPassword As Boolean
    Property Value
    System.Boolean

    true if PresentationDocument is protected with the password against modification and re-saving to the same file name; otherwise, false.

    Methods

    SetPassword(String)

    Sets the modification protection password for the current PresentationDocument instance.

    • C#
    • VB.NET
    public void SetPassword(string password)
    Public Sub SetPassword(password As String)
    Parameters
    password
    System.String

    New modification protection password (or null to remove password from modification protection).

    Exceptions
    System.ArgumentException

    password is too long. Modification protection password cannot have more than 255 characters.

    Examples

    PPTX Modify Protection example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.