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

Represents information about a revision in a document.

Definition

Namespace:Telerik.Windows.Documents.Model.Revisions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class RevisionInfo

Inheritance: objectRevisionInfo

Constructors

C#
public RevisionInfo()

Properties

Gets or sets the author of the revision.

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

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

Gets the date associated with the revision information.

C#
[TypeConverter(typeof(UniversalDateTimeConverter))]
[XamlSerializable]
public DateTime Date { get; set; }

Gets or sets the tag associated with the revision information.

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

The tag that provides contextual information about the revision.

Methods

Creates a deep copy of the current RevisionInfo instance.

C#
public RevisionInfo CreateDeepCopy()
Returns:

RevisionInfo

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

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

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

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)

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

C#
public override int GetHashCode()
Returns:

int

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

Overrides: object.GetHashCode()

Determines whether two RevisionInfo objects should be merged.

C#
public static bool ShouldMerge(RevisionInfo info1, RevisionInfo info2)
Parameters:info1RevisionInfo

The first RevisionInfo object to evaluate.

info2RevisionInfo

The second RevisionInfo object to evaluate.

Returns:

bool

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

Operators

C#
public static bool operator !=(RevisionInfo left, RevisionInfo right)
Parameters:leftRevisionInforightRevisionInfoReturns:

bool

C#
public static bool operator ==(RevisionInfo left, RevisionInfo right)
Parameters:leftRevisionInforightRevisionInfoReturns:

bool