RevisionColor Enumeration

Allows to specify color of document revisions.

Namespace:  Aspose.Words.Layout
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum RevisionColor
Members
  Member nameValueDescription
Auto0 Default.
Black1 Represents 000000 color.
Blue2 Represents 2e97d3 color.
BrightGreen3 Represents 84a35b color.
DarkBlue4 Represents 376e96 color.
DarkRed5 Represents 881824 color.
DarkYellow6 Represents e09a2b color.
Gray257 Represents a0a3a9 color.
Gray508 Represents 50565e color.
Green9 Represents 2c6234 color.
Pink10 Represents ce338f color.
Red11 Represents b5082e color.
Teal12 Represents 1b9cab color.
Turquoise13 Represents 3eafc2 color.
Violet14 Represents 633277 color.
White15 Represents ffffff color.
Yellow16 Represents fad272 color.
NoHighlight17 No color is used to highlight revision changes.
ByAuthor18 Revisions of each author receive their own color for highlighting from a predfined set of hi-contrast colors.
Examples
Shows how to set a document's layout options.
Document doc = new Document();

Assert.IsFalse(doc.LayoutOptions.ShowHiddenText);
Assert.IsFalse(doc.LayoutOptions.ShowParagraphMarks);

// The appearance of revisions can be controlled from the layout options property
doc.StartTrackRevisions("John Doe", DateTime.Now);
doc.LayoutOptions.RevisionOptions.InsertedTextColor = RevisionColor.BrightGreen;
doc.LayoutOptions.RevisionOptions.ShowRevisionBars = false;

DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln(
    "This is a revision. Normally the text is red with a bar to the left, but we made some changes to the revision options.");

doc.StopTrackRevisions();

// Layout options can be used to show hidden text too
builder.Writeln("This text is not hidden.");
builder.Font.Hidden = true;
builder.Writeln(
    "This text is hidden. It will only show up in the output if we allow it to via doc.LayoutOptions.");

doc.LayoutOptions.ShowHiddenText = true;

doc.Save(ArtifactsDir + "Document.LayoutOptions.pdf");
See Also