Class
DocumentProtectionSettings

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:

cs-api-definition
public class DocumentProtectionSettings : INotifyPropertyChanged

Inheritance: objectDocumentProtectionSettings

Implements: INotifyPropertyChanged

Constructors

DocumentProtectionSettings()

Initializes a new instance of the DocumentProtectionSettings class.

Declaration

cs-api-definition
public DocumentProtectionSettings()

DocumentProtectionSettings(DocumentProtectionSettings)

Initializes a new instance of the DocumentProtectionSettings class by copying the settings from another instance.

Declaration

cs-api-definition
public DocumentProtectionSettings(DocumentProtectionSettings source)

Parameters

source

DocumentProtectionSettings

The source.

Properties

EnableDocumentProtection

Gets or sets a value indicating whether the document protection is enabled.

Declaration

cs-api-definition
[XamlSerializable]
public bool EnableDocumentProtection { get; set; }

Property Value

bool

true if document protection is enabled; otherwise, false.

Enforce

Gets or sets a value indicating whether this DocumentProtectionSettings are enforced.

Declaration

cs-api-definition
[XamlSerializable]
public bool Enforce { get; set; }

Property Value

bool

true if the settings are enforced; otherwise, false.

HasPassword

Gets a value indicating whether this instance has password.

Declaration

cs-api-definition
public bool HasPassword { get; }

Property Value

bool

true if this instance has password; otherwise, false.

HashingAlgorithm

Gets or sets the hashing algorithm. The supported for document protection values are MD5 and SHA1.

Declaration

cs-api-definition
[XamlSerializable]
public HashingAlgorithm HashingAlgorithm { get; set; }

Property Value

HashingAlgorithm

The hashing algorithm.

HashingSpinCount

Gets or sets the count of hashing spins which should be used when protecting.

Declaration

cs-api-definition
[XamlSerializable]
public int HashingSpinCount { get; set; }

Property Value

int

The hashing spin count.

IsHashingAlgorithmSupported

Gets a value indicating whether the HashingAlgorithm applied to this instance is supported.

Declaration

cs-api-definition
public bool IsHashingAlgorithmSupported { get; }

Property Value

bool

true if this instance is hashing algorithm supported; otherwise, false.

PasswordHash

Gets or sets the password hash.

Declaration

cs-api-definition
[XamlSerializable]
public string PasswordHash { get; set; }

Property Value

string

The password hash.

ProtectionMode

Gets or sets the protection mode.

Declaration

cs-api-definition
[XamlSerializable]
public DocumentProtectionMode ProtectionMode { get; set; }

Property Value

DocumentProtectionMode

The protection mode.

Salt

Gets or sets the salt.

Declaration

cs-api-definition
[XamlSerializable]
public string Salt { get; set; }

Property Value

string

The salt.

Methods

Equals(object)

Determines whether the specified object, is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides object.GetHashCode()

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

Operators

operator !=(DocumentProtectionSettings, DocumentProtectionSettings)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(DocumentProtectionSettings first, DocumentProtectionSettings second)

Parameters

first

DocumentProtectionSettings

The first.

second

DocumentProtectionSettings

The second.

Returns

bool

The result of the operator.

operator ==(DocumentProtectionSettings, DocumentProtectionSettings)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(DocumentProtectionSettings first, DocumentProtectionSettings second)

Parameters

first

DocumentProtectionSettings

The first.

second

DocumentProtectionSettings

The second.

Returns

bool

The result of the operator.