Class RevisionGroup
Represents one contiguous group of revisions made by the same author.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class RevisionGroup : IReadOnlyList<Revision>, IReadOnlyCollection<Revision>, IEnumerable<Revision>, IEnumerable
Constructors
RevisionGroup(string, IEnumerable<Revision>)
Creates a revision group from an ordered revision sequence.
Declaration
public RevisionGroup(string author, IEnumerable<Revision> revisions)
Parameters
| Type | Name | Description |
|---|---|---|
| string | author | The author shared by the revisions. |
| IEnumerable<Revision> | revisions | The revisions in document order. |
Properties
Author
The author who made the revisions in this group.
Declaration
public string Author { get; }
Property Value
| Type | Description |
|---|---|
| string |
Count
Gets the number of revisions in this group.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets a revision by its zero-based position in the group.
Declaration
public Revision this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based revision index. |
Property Value
| Type | Description |
|---|---|
| Revision |
Revisions
Gets the revisions in document order.
Declaration
public IReadOnlyList<Revision> Revisions { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<Revision> |
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<Revision> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<Revision> | An enumerator that can be used to iterate through the collection. |