Class describing the protection settings which can be applied on a RadDocument.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentProtectionSettings : INotifyPropertyChanged
Inheritance: objectDocumentProtectionSettings
Implements:
Constructors
Initializes a new instance of the DocumentProtectionSettings class.
public DocumentProtectionSettings()
Initializes a new instance of the DocumentProtectionSettings class by copying the settings from another instance.
public DocumentProtectionSettings(DocumentProtectionSettings source)
The source.
Properties
Gets or sets a value indicating whether the document protection is enabled.
[XamlSerializable]
public bool EnableDocumentProtection { get; set; }
true if document protection is enabled; otherwise, false.
Gets or sets a value indicating whether this DocumentProtectionSettings are enforced.
[XamlSerializable]
public bool Enforce { get; set; }
true if the settings are enforced; otherwise, false.
Gets or sets the count of hashing spins which should be used when protecting.
[XamlSerializable]
public int HashingSpinCount { get; set; }
The hashing spin count.
Gets a value indicating whether this instance has password.
public bool HasPassword { get; }
true if this instance has password; otherwise, false.
Gets a value indicating whether the HashingAlgorithm applied to this instance is supported.
public bool IsHashingAlgorithmSupported { get; }
true if this instance is hashing algorithm supported; otherwise, false.
Gets or sets the password hash.
[XamlSerializable]
public string PasswordHash { get; set; }
The password hash.
Gets or sets the protection mode.
[XamlSerializable]
public DocumentProtectionMode ProtectionMode { get; set; }
The protection mode.
Methods
Returns a hash code for this instance.
public override int GetHashCode()
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides:
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements:
Operators
Implements the operator !=.
public static bool operator !=(DocumentProtectionSettings first, DocumentProtectionSettings second)
The first.
secondDocumentProtectionSettingsThe second.
Returns:The result of the operator.
Implements the operator ==.
public static bool operator ==(DocumentProtectionSettings first, DocumentProtectionSettings second)
The first.
secondDocumentProtectionSettingsThe second.
Returns:The result of the operator.