RevisionOptions

RevisionOptions class

Allows to control how document revisions are handled during layout process.

public class RevisionOptions

Properties

Name Description
CommentColor { get; set; } Allows to specify the color to be used for comments. Default value is Red.
DeletedTextColor { get; set; } Allows to specify the color to be used for deleted content Deletion. Default value is ByAuthor.
DeletedTextEffect { get; set; } Allows to specify the effect to be applied to the deleted content Deletion. Default value is StrikeThrough
InsertedTextColor { get; set; } Allows to specify the color to be used for inserted content Insertion. Default value is ByAuthor.
InsertedTextEffect { get; set; } Allows to specify the effect to be applied to the inserted content Insertion. Default value is Underline.
MeasurementUnit { get; set; } Allows to specify the measurement units for revision comments. Default value is Centimeters
MovedFromTextColor { get; set; } Allows to specify the color to be used for areas where content was moved from Moving. Default value is ByAuthor.
MovedFromTextEffect { get; set; } Allows to specify the effect to be applied to the areas where content was moved from Moving. Default value is DoubleStrikeThrough
MovedToTextColor { get; set; } Allows to specify the color to be used for areas where content was moved to Moving. Default value is ByAuthor.
MovedToTextEffect { get; set; } Allows to specify the effect to be applied to the areas where content was moved to Moving. Default value is DoubleUnderline
RevisedPropertiesColor { get; set; } Allows to specify the color to be used for content with changes of formatting properties FormatChange Default value is NoHighlight.
RevisedPropertiesEffect { get; set; } Allows to specify the effect for content areas with changes of formatting properties FormatChange Default value is None
RevisionBarsColor { get; set; } Allows to specify the color to be used for side bars that identify document lines containing revised information. Default value is Red.
RevisionBarsPosition { get; set; } Gets or sets rendering position of revision bars. Default value is Outside.
RevisionBarsWidth { get; set; } Gets or sets width of revision bars, points.
ShowInBalloons { get; set; } Allows to specify whether the revisions are rendered in the balloons. Default value is None.
ShowOriginalRevision { get; set; } Allows to specify whether the original text should be shown instead of revised one. Default value is False.
ShowRevisionBars { get; set; } Allows to specify whether revision bars should be rendered near lines containing revised content. Default value is True.
ShowRevisionMarks { get; set; } Allow to specify whether revision text should be marked with special formatting markup. Default value is True.

Examples

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", DateTime.Now);
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.LayoutOptions.RevisionOptions.InsertedTextColor = RevisionColor.BrightGreen;
doc.LayoutOptions.RevisionOptions.ShowRevisionBars = false;

doc.Save(ArtifactsDir + "Document.LayoutOptionsRevisions.pdf");

See Also