Click or drag to resize

DocumentWriteProtection Class

Represents the write protection options for the document. Supported only in DOCX format.
Inheritance Hierarchy
SystemObject
  SautinSoft.DocumentDocumentWriteProtection

Namespace:  SautinSoft.Document
Assembly:  SautinSoft.Document (in SautinSoft.Document.dll) Version: 3.8.6.28 (3.8.6.28)
Syntax
public sealed class DocumentWriteProtection

The DocumentWriteProtection type exposes the following members.

Properties
  NameDescription
Public propertyHasPassword
Returns true if document is protected with the password against re-saving to the same file name.
Public propertyReadOnlyRecommended
Gets or sets option that specifies if applications should provide user interface recommending that the user open this document in write protected state.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetPassword
Sets the password. If password is or empty, any existing password will be cleared.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also