RevisionBarsPosition

RevisionOptions.RevisionBarsPosition property

Gets or sets rendering position of revision bars. Default value is Outside.

public HorizontalAlignment RevisionBarsPosition { get; set; }

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionValues of Center and Inside are not allowed.

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.LayoutOptions.RevisionOptions.RevisionBarsPosition = HorizontalAlignment.Right;

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

See Also