com.aspose.words
Class RevisionColor

java.lang.Object
    extended by com.aspose.words.RevisionColor

public class RevisionColor 
extends java.lang.Object

Utility class containing constants. Allows to specify color of document revisions.

Example:

Shows how to set a document's layout options.
Document doc = new Document();
LayoutOptions options = doc.getLayoutOptions();

// The appearance of revisions can be controlled from the layout options property
doc.startTrackRevisions("John Doe", new Date());
options.getRevisionOptions().setInsertedTextColor(RevisionColor.BRIGHT_GREEN);
options.getRevisionOptions().setShowRevisionBars(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.getFont().setHidden(true);
builder.writeln(
        "This text is hidden. It will only show up in the output if we allow it to via doc.LayoutOptions.");

options.setShowHiddenText(true);

// This option is equivalent to enabling paragraph marks in Microsoft Word via Home > paragraph > Show Paragraph Marks,
// and can be used to display these features in a .pdf
options.setShowParagraphMarks(true);

doc.save(getArtifactsDir() + "Document.LayoutOptions.pdf");

Field Summary
static final intAUTO = 0
           Default.
static final intBLACK = 1
           Represents 000000 color.
static final intBLUE = 2
           Represents 2e97d3 color.
static final intBRIGHT_GREEN = 3
           Represents 84a35b color.
static final intDARK_BLUE = 4
           Represents 376e96 color.
static final intDARK_RED = 5
           Represents 881824 color.
static final intDARK_YELLOW = 6
           Represents e09a2b color.
static final intGRAY_25 = 7
           Represents a0a3a9 color.
static final intGRAY_50 = 8
           Represents 50565e color.
static final intGREEN = 9
           Represents 2c6234 color.
static final intPINK = 10
           Represents ce338f color.
static final intRED = 11
           Represents b5082e color.
static final intTEAL = 12
           Represents 1b9cab color.
static final intTURQUOISE = 13
           Represents 3eafc2 color.
static final intVIOLET = 14
           Represents 633277 color.
static final intWHITE = 15
           Represents ffffff color.
static final intYELLOW = 16
           Represents fad272 color.
static final intNO_HIGHLIGHT = 17
           No color is used to highlight revision changes.
static final intBY_AUTHOR = 18
           Revisions of each author receive their own color for highlighting from a predfined set of hi-contrast colors.
 

Field Detail

AUTO = 0

public static final int AUTO
Default.

BLACK = 1

public static final int BLACK
Represents 000000 color.

BLUE = 2

public static final int BLUE
Represents 2e97d3 color.

BRIGHT_GREEN = 3

public static final int BRIGHT_GREEN
Represents 84a35b color.

DARK_BLUE = 4

public static final int DARK_BLUE
Represents 376e96 color.

DARK_RED = 5

public static final int DARK_RED
Represents 881824 color.

DARK_YELLOW = 6

public static final int DARK_YELLOW
Represents e09a2b color.

GRAY_25 = 7

public static final int GRAY_25
Represents a0a3a9 color.

GRAY_50 = 8

public static final int GRAY_50
Represents 50565e color.

GREEN = 9

public static final int GREEN
Represents 2c6234 color.

PINK = 10

public static final int PINK
Represents ce338f color.

RED = 11

public static final int RED
Represents b5082e color.

TEAL = 12

public static final int TEAL
Represents 1b9cab color.

TURQUOISE = 13

public static final int TURQUOISE
Represents 3eafc2 color.

VIOLET = 14

public static final int VIOLET
Represents 633277 color.

WHITE = 15

public static final int WHITE
Represents ffffff color.

YELLOW = 16

public static final int YELLOW
Represents fad272 color.

NO_HIGHLIGHT = 17

public static final int NO_HIGHLIGHT
No color is used to highlight revision changes.

BY_AUTHOR = 18

public static final int BY_AUTHOR
Revisions of each author receive their own color for highlighting from a predfined set of hi-contrast colors.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.