Skip to main content
All docs
V26.1
  • WriteProtectionOptions(String, HashAlgorithmType) Constructor

    Initializes a new instance of the WriteProtectionOptions class with specified settings.

    Namespace: DevExpress.Docs.Office

    Assembly: DevExpress.Docs.Core.v26.1.dll

    NuGet Package: DevExpress.Docs.Core

    Declaration

    public WriteProtectionOptions(
        string password,
        HashAlgorithmType hashAlgorithm = HashAlgorithmType.Sha512
    )

    Parameters

    Name Type Description
    password String

    A password that is used to protect a document from editing.

    Optional Parameters

    Name Type Default Description
    hashAlgorithm HashAlgorithmType Sha512

    A hash algorithm that is used to generate a password hash.

    See Also