Class
RevisionInfo

Represents information about a revision in a document.

Definition

Namespace:Telerik.Windows.Documents.Model.Revisions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class RevisionInfo

Inheritance: objectRevisionInfo

Constructors

RevisionInfo()

Declaration

cs-api-definition
public RevisionInfo()

Properties

Author

Gets or sets the author of the revision.

Declaration

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

Property Value

string

A string representing the name of the author who made the revision.

Date

Gets the date associated with the revision information.

Declaration

cs-api-definition
[TypeConverter(typeof(UniversalDateTimeConverter))]
[XamlSerializable]
public DateTime Date { get; set; }

Property Value

DateTime

Tag

Gets or sets the tag associated with the revision information.

Declaration

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

Property Value

string

The tag that provides contextual information about the revision.

Methods

CreateDeepCopy()

Creates a deep copy of the current RevisionInfo instance.

Declaration

cs-api-definition
public RevisionInfo CreateDeepCopy()

Returns

RevisionInfo

A new instance of the RevisionInfo that is a deep copy of the original instance.

Equals(object)

Determines whether the specified object is equal to the current RevisionInfo instance.

Declaration

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

Parameters

obj

object

The object to compare with the current RevisionInfo instance.

Returns

bool

True if the specified object is equal to the current RevisionInfo; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Returns a hash code for the current instance of the RevisionInfo class.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for the current RevisionInfo object.

Overrides object.GetHashCode()

ShouldMerge(RevisionInfo, RevisionInfo)

Determines whether two RevisionInfo objects should be merged.

Declaration

cs-api-definition
public static bool ShouldMerge(RevisionInfo info1, RevisionInfo info2)

Parameters

info1

RevisionInfo

The first RevisionInfo object to evaluate.

info2

RevisionInfo

The second RevisionInfo object to evaluate.

Returns

bool

Returns true if the two RevisionInfo objects should be merged; otherwise, false.

Operators

operator !=(RevisionInfo, RevisionInfo)

Declaration

cs-api-definition
public static bool operator !=(RevisionInfo left, RevisionInfo right)

Parameters

left

RevisionInfo

right

RevisionInfo

Returns

bool

operator ==(RevisionInfo, RevisionInfo)

Declaration

cs-api-definition
public static bool operator ==(RevisionInfo left, RevisionInfo right)

Parameters

left

RevisionInfo

right

RevisionInfo

Returns

bool