RevisionColor Enumeration |
Allows to specify color of document revisions.
Namespace:
Aspose.Words.Layout
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum RevisionColor
Public Enumeration RevisionColor
public enum class RevisionColor
Members
| Member name | Value | Description |
---|
| Auto | 0 |
Default.
|
| Black | 1 |
Represents 000000 color.
|
| Blue | 2 |
Represents 2e97d3 color.
|
| BrightGreen | 3 |
Represents 84a35b color.
|
| DarkBlue | 4 |
Represents 376e96 color.
|
| DarkRed | 5 |
Represents 881824 color.
|
| DarkYellow | 6 |
Represents e09a2b color.
|
| Gray25 | 7 |
Represents a0a3a9 color.
|
| Gray50 | 8 |
Represents 50565e color.
|
| Green | 9 |
Represents 2c6234 color.
|
| Pink | 10 |
Represents ce338f color.
|
| Red | 11 |
Represents b5082e color.
|
| Teal | 12 |
Represents 1b9cab color.
|
| Turquoise | 13 |
Represents 3eafc2 color.
|
| Violet | 14 |
Represents 633277 color.
|
| White | 15 |
Represents ffffff color.
|
| Yellow | 16 |
Represents fad272 color.
|
| NoHighlight | 17 |
No color is used to highlight revision changes.
|
| ByAuthor | 18 |
Revisions of each author receive their own color for highlighting from a predfined set of hi-contrast colors.
|
ExamplesShows how to set a document's layout options.
Document doc = new Document();
Assert.IsFalse(doc.LayoutOptions.ShowHiddenText);
Assert.IsFalse(doc.LayoutOptions.ShowParagraphMarks);
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();
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