RevisionInfo
Definition
Namespace:Telerik.WinForms.Documents.Model.Revisions
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class RevisionInfo
Inheritance: objectRevisionInfo
Constructors
Creates revision metadata with the author set to Anonymous and the date set to the current time,
rounded down to the minute in non-debug builds and to 10-second intervals in DEBUG builds.
public RevisionInfo()
Properties
Gets or sets the author name recorded for the revision.
[XamlSerializable]
public string Author { get; set; }
Gets or sets the date and time recorded for the revision.
[TypeConverter(typeof(UniversalDateTimeConverter))]
[XamlSerializable]
public DateTime Date { get; set; }
Gets or sets an additional serialized tag. This value is not considered by revision equality or merging, and is not copied by CreateDeepCopy().
[XamlSerializable]
public string Tag { get; set; }
Methods
Creates a copy of the author and date metadata. The Tag is not copied.
public RevisionInfo CreateDeepCopy()
A new revision metadata instance with the same author and date.
Determines whether the specified object has the same author and date as this revision. The tag is ignored.
public override bool Equals(object obj)
The object to compare with this revision.
Returns:true if obj is a RevisionInfo with matching author and date; otherwise, false.
Overrides:
Determines whether two revisions can be merged by comparing their author and date. The tag is ignored.
public static bool ShouldMerge(RevisionInfo info1, RevisionInfo info2)
The first revision, or null.
info2RevisionInfoThe second revision, or null.
Returns:Operators
Determines whether two revisions have different authors or dates, or only one reference is null. The tag is ignored.
public static bool operator !=(RevisionInfo left, RevisionInfo right)
The first revision, or null.
rightRevisionInfoThe second revision, or null.
Returns:Determines whether two revisions have the same author and date. The tag is ignored.
public static bool operator ==(RevisionInfo left, RevisionInfo right)
The first revision, or null.
rightRevisionInfoThe second revision, or null.
Returns:true if both references are null or their author and date match; otherwise, false.