RevisionColor enumeration

Allows to specify color of document revisions.

public enum RevisionColor


Black1Represents 000000 color.
Blue2Represents 2e97d3 color.
BrightGreen3Represents 84a35b color.
ClassicBlue4Represents 0000ff color.
ClassicRed5Represents ff0000 color.
DarkBlue6Represents 376e96 color.
DarkRed7Represents 881824 color.
DarkYellow8Represents e09a2b color.
Gray259Represents a0a3a9 color.
Gray5010Represents 50565e color.
Green11Represents 2c6234 color.
Pink12Represents ce338f color.
Red13Represents b5082e color.
Teal14Represents 1b9cab color.
Turquoise15Represents 3eafc2 color.
Violet16Represents 633277 color.
White17Represents ffffff color.
Yellow18Represents fad272 color.
NoHighlight19No color is used to highlight revision changes.
ByAuthor20Revisions of each author receive their own color for highlighting from a predfined set of hi-contrast colors.


Shows how to alter the appearance of revisions in a rendered output document.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert a revision, then change the color of all revisions to green.
builder.Writeln("This is not a revision.");
doc.StartTrackRevisions("John Doe", DateTime.Now);
builder.Writeln("This is a revision.");
builder.Writeln("This is not a revision.");

// Remove the bar that appears to the left of every revised line.
doc.LayoutOptions.RevisionOptions.InsertedTextColor = RevisionColor.BrightGreen;
doc.LayoutOptions.RevisionOptions.ShowRevisionBars = false;

doc.Save(ArtifactsDir + "Document.LayoutOptionsRevisions.pdf");

See Also