RevisionOptions Class

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

ExpandedInheritance Hierarchy

SystemObject
  Aspose.Words.LayoutRevisionOptions

Namespace:  Aspose.Words.Layout
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.11.0

ExpandedSyntax

public class RevisionOptions

The RevisionOptions type exposes the following members.

ExpandedProperties

  NameDescription
Public propertyCode exampleCommentColor
Allows to specify the color to be used for comments. Default value is Red.
Public propertyCode exampleDeletedTextColor
Allows to specify the color to be used for deleted content Deletion. Default value is ByAuthor.
Public propertyCode exampleDeletedTextEffect
Allows to specify the effect to be applied to the deleted content Deletion. Default value is StrikeThrough
Public propertyCode exampleInsertedTextColor
Allows to specify the color to be used for inserted content Insertion. Default value is ByAuthor.
Public propertyCode exampleInsertedTextEffect
Allows to specify the effect to be applied to the inserted content Insertion. Default value is Underline.
Public propertyMeasurementUnit
Allows to specify the measurement units for revision comments. Default value is Centimeters
Public propertyCode exampleMovedFromTextColor
Allows to specify the color to be used for areas where content was moved from Moving. Default value is ByAuthor.
Public propertyCode exampleMovedFromTextEffect
Allows to specify the effect to be applied to the areas where content was moved from Moving. Default value is DoubleStrikeThrough
Public propertyCode exampleMovedToTextColor
Allows to specify the color to be used for areas where content was moved to Moving. Default value is ByAuthor.
Public propertyCode exampleMovedToTextEffect
Allows to specify the effect to be applied to the areas where content was moved to Moving. Default value is DoubleUnderline
Public propertyCode exampleRevisedPropertiesColor
Allows to specify the color to be used for content with changes of formatting properties FormatChange Default value is NoHighlight.
Public propertyCode exampleRevisedPropertiesEffect
Allows to specify the effect for content areas with changes of formatting properties FormatChange Default value is None
Public propertyCode exampleRevisionBarsColor
Allows to specify the color to be used for side bars that identify document lines containing revised information. Default value is Red.
Public propertyRevisionBarsPosition
Gets or sets rendering position of revision bars. Default value is Outside.
Public propertyCode exampleRevisionBarsWidth
Gets or sets width of revision bars, points.
Public propertyCode exampleShowInBalloons
Allows to specify whether the revisions are rendered in the balloons. Default value is None
Public propertyCode exampleShowOriginalRevision
Allows to specify whether the original text should be shown instead of revised one. Default value is False.
Public propertyCode exampleShowRevisionBars
Allows to specify whether revision bars should be rendered near lines containing revised content. Default value is True.
Public propertyCode exampleShowRevisionMarks
Allow to specify whether revision text should be marked with special formatting markup. Default value is True.

ExpandedMethods

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)

ExpandedExamples

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,
// and also remove the bar that appears to the left of every revised line.
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.");

doc.LayoutOptions.RevisionOptions.InsertedTextColor = RevisionColor.BrightGreen;
doc.LayoutOptions.RevisionOptions.ShowRevisionBars = false;

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

ExpandedSee Also