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