Aspose::Words::Layout::RevisionColor enum

RevisionColor enum

Allows to specify color of document revisions.

enum class RevisionColor : int

Values

NameValueDescription
Auto0Default.
Black1Represents 000000 color.
Blue2Represents 2e97d3 color.
BrightGreen3Represents 84a35b color.
ByAuthor27Revisions of each author receive their own color for highlighting from a predefined set of hi-contrast colors.
ClassicBlue4Represents 0000ff color.
ClassicRed5Represents ff0000 color.
DarkBlue6Represents 376e96 color.
DarkRed7Represents 881824 color.
DarkYellow8Represents e09a2b color.
Gray25Represents efeded color.
Gray259Represents a0a3a9 color.
Gray5010Represents 50565e color.
Green11Represents 2c6234 color.
LightBlue20Represents e1f2fa color.
LightGreen24Represents e9f8ce color.
LightOrange23Represents fce3d0 color.
LightPink19Represents fce6f4 color.
LightPurple22Represents eadfef color.
LightYellow21Represents fef4de color.
NoHighlight26No color is used to highlight revision changes.
Pink12Represents ce338f color.
Red13Represents b5082e color.
Teal14Represents 1b9cab color.
Turquoise15Represents 3eafc2 color.
Violet16Represents 633277 color.
White17Represents ffffff color.
Yellow18Represents fad272 color.

Examples

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

auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);

// Insert a revision, then change the color of all revisions to green.
builder->Writeln(u"This is not a revision.");
doc->StartTrackRevisions(u"John Doe", System::DateTime::get_Now());
builder->Writeln(u"This is a revision.");
doc->StopTrackRevisions();
builder->Writeln(u"This is not a revision.");

// Remove the bar that appears to the left of every revised line.
doc->get_LayoutOptions()->get_RevisionOptions()->set_InsertedTextColor(RevisionColor::BrightGreen);
doc->get_LayoutOptions()->get_RevisionOptions()->set_ShowRevisionBars(false);
doc->get_LayoutOptions()->get_RevisionOptions()->set_RevisionBarsPosition(HorizontalAlignment::Right);

doc->Save(get_ArtifactsDir() + u"Revision.LayoutOptionsRevisions.pdf");

See Also