Class FormatRevision<TFormat>
Base class for revisions that retain a typed snapshot of the format that was in effect before a formatting change.
Inheritance
FormatRevision<TFormat>
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public abstract class FormatRevision<TFormat> : Revision where TFormat : class
Type Parameters
| Name | Description |
|---|---|
| TFormat | The type of the retained format snapshot. |
Constructors
FormatRevision(string, DateTime, TFormat, Action, Action)
Creates a format revision.
Declaration
protected FormatRevision(string author, DateTime date, TFormat previousFormat, Action acceptAction, Action rejectAction)
Parameters
| Type | Name | Description |
|---|---|---|
| string | author | The author who made the format change. |
| DateTime | date | The date/time when the change was made. |
| TFormat | previousFormat | The format snapshot from before the change. |
| Action | acceptAction | The action used to accept the change. |
| Action | rejectAction | The action used to restore the previous format. |
Properties
PreviousFormat
Gets the format snapshot from before the revision was applied.
Declaration
public TFormat PreviousFormat { get; }
Property Value
| Type | Description |
|---|---|
| TFormat |