RevisionColor

RevisionColor enumeration

Allows to specify color of document revisions.

public enum RevisionColor

Values

NameValueDescription
Auto0Default.
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.
LightPink19Represents fce6f4 color.
LightBlue20Represents e1f2fa color.
LightYellow21Represents fef4de color.
LightPurple22Represents eadfef color.
LightOrange23Represents fce3d0 color.
LightGreen24Represents e9f8ce color.
Gray25Represents efeded color.
NoHighlight26No color is used to highlight revision changes.
ByAuthor27Revisions of each author receive their own color for highlighting from a predefined set of hi-contrast colors.

Examples

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.");
doc.StopTrackRevisions();
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.LayoutOptions.RevisionOptions.RevisionBarsPosition = HorizontalAlignment.Right;

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

See Also