New to Telerik UI for WinFormsStart a free 30-day trial

Class describing the protection settings which can be applied on a RadDocument.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocumentProtectionSettings : INotifyPropertyChanged

Inheritance: objectDocumentProtectionSettings

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the DocumentProtectionSettings class.

C#
public DocumentProtectionSettings()

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

C#
public DocumentProtectionSettings(DocumentProtectionSettings source)
Parameters:sourceDocumentProtectionSettings

The source.

Properties

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

C#
[XamlSerializable]
public bool EnableDocumentProtection { get; set; }
Property Value:

true if document protection is enabled; otherwise, false.

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

C#
[XamlSerializable]
public bool Enforce { get; set; }
Property Value:

true if the settings are enforced; otherwise, false.

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

C#
[XamlSerializable]
public HashingAlgorithm HashingAlgorithm { get; set; }
Property Value:

The hashing algorithm.

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

C#
[XamlSerializable]
public int HashingSpinCount { get; set; }
Property Value:

The hashing spin count.

Gets a value indicating whether this instance has password.

C#
public bool HasPassword { get; }
Property Value:

true if this instance has password; otherwise, false.

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

C#
public bool IsHashingAlgorithmSupported { get; }
Property Value:

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

Gets or sets the password hash.

C#
[XamlSerializable]
public string PasswordHash { get; set; }
Property Value:

The password hash.

Gets or sets the protection mode.

C#
[XamlSerializable]
public DocumentProtectionMode ProtectionMode { get; set; }
Property Value:

The protection mode.

Gets or sets the salt.

C#
[XamlSerializable]
public string Salt { get; set; }
Property Value:

The salt.

Methods

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

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Returns a hash code for this instance.

C#
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

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged

Operators

Implements the operator !=.

C#
public static bool operator !=(DocumentProtectionSettings first, DocumentProtectionSettings second)
Parameters:firstDocumentProtectionSettings

The first.

secondDocumentProtectionSettings

The second.

Returns:

bool

The result of the operator.

Implements the operator ==.

C#
public static bool operator ==(DocumentProtectionSettings first, DocumentProtectionSettings second)
Parameters:firstDocumentProtectionSettings

The first.

secondDocumentProtectionSettings

The second.

Returns:

bool

The result of the operator.