com.aspose.words

Class RevisionColor

  • java.lang.Object
    • 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 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", new Date());
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.getLayoutOptions().getRevisionOptions().setInsertedTextColor(RevisionColor.BRIGHT_GREEN);
doc.getLayoutOptions().getRevisionOptions().setShowRevisionBars(false);

doc.save(getArtifactsDir() + "Document.LayoutOptionsRevisions.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 intCLASSIC_BLUE = 4
static final intCLASSIC_RED = 5
static final intDARK_BLUE = 6
Represents 376e96 color.
static final intDARK_RED = 7
Represents 881824 color.
static final intDARK_YELLOW = 8
Represents e09a2b color.
static final intGRAY_25 = 9
Represents a0a3a9 color.
static final intGRAY_50 = 10
Represents 50565e color.
static final intGREEN = 11
Represents 2c6234 color.
static final intPINK = 12
Represents ce338f color.
static final intRED = 13
Represents b5082e color.
static final intTEAL = 14
Represents 1b9cab color.
static final intTURQUOISE = 15
Represents 3eafc2 color.
static final intVIOLET = 16
Represents 633277 color.
static final intWHITE = 17
Represents ffffff color.
static final intYELLOW = 18
Represents fad272 color.
static final intNO_HIGHLIGHT = 19
No color is used to highlight revision changes.
static final intBY_AUTHOR = 20
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.
      • CLASSIC_BLUE = 4

        public static final int CLASSIC_BLUE
      • CLASSIC_RED = 5

        public static final int CLASSIC_RED
      • DARK_BLUE = 6

        public static final int DARK_BLUE
        Represents 376e96 color.
      • DARK_RED = 7

        public static final int DARK_RED
        Represents 881824 color.
      • DARK_YELLOW = 8

        public static final int DARK_YELLOW
        Represents e09a2b color.
      • GRAY_25 = 9

        public static final int GRAY_25
        Represents a0a3a9 color.
      • GRAY_50 = 10

        public static final int GRAY_50
        Represents 50565e color.
      • GREEN = 11

        public static final int GREEN
        Represents 2c6234 color.
      • PINK = 12

        public static final int PINK
        Represents ce338f color.
      • RED = 13

        public static final int RED
        Represents b5082e color.
      • TEAL = 14

        public static final int TEAL
        Represents 1b9cab color.
      • TURQUOISE = 15

        public static final int TURQUOISE
        Represents 3eafc2 color.
      • VIOLET = 16

        public static final int VIOLET
        Represents 633277 color.
      • WHITE = 17

        public static final int WHITE
        Represents ffffff color.
      • YELLOW = 18

        public static final int YELLOW
        Represents fad272 color.
      • NO_HIGHLIGHT = 19

        public static final int NO_HIGHLIGHT
        No color is used to highlight revision changes.
      • BY_AUTHOR = 20

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