ShowInBalloons Enumeration

Specifies which revisions are rendered in balloons.

Namespace:  Aspose.Words.Layout
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum ShowInBalloons
Members
  Member nameValueDescription
None0 Renders insert, delete and format revisions inline.
Format1 Renders insert and delete revisions inline, format revisions in balloons.
FormatAndDelete2 Renders insert revisions inline, delete and format revisions in balloons.
Remarks
Note that these values do not affect rendering of comments, which are controlled by ShowComments.
Examples
Show how to render revisions in the balloons and edit their appearance.
Document doc = new Document(MyDir + "Revisions.docx");

// Get the RevisionOptions object that controls the appearance of revisions
RevisionOptions revisionOptions = doc.LayoutOptions.RevisionOptions;

// Get movement, deletion, formatting revisions and comments to show up in green balloons on the right side of the page
revisionOptions.ShowInBalloons = ShowInBalloons.Format;
revisionOptions.CommentColor = RevisionColor.BrightGreen;

// Render text inserted while revisions were being tracked in italic green
revisionOptions.InsertedTextColor = RevisionColor.Green;
revisionOptions.InsertedTextEffect = RevisionTextEffect.Italic;

// Render text deleted while revisions were being tracked in bold red
revisionOptions.DeletedTextColor = RevisionColor.Red;
revisionOptions.DeletedTextEffect = RevisionTextEffect.Bold;

// In a movement revision, the same text will appear twice: once at the departure point and once at the arrival destination
// Render the text at the moved-from revision yellow with double strike through and double underlined blue at the moved-to revision
revisionOptions.MovedFromTextColor = RevisionColor.Yellow;
revisionOptions.MovedFromTextEffect = RevisionTextEffect.DoubleStrikeThrough;
revisionOptions.MovedToTextColor = RevisionColor.Blue;
revisionOptions.MovedFromTextEffect = RevisionTextEffect.DoubleUnderline;

// Render text which had its format changed while revisions were being tracked in bold dark red
revisionOptions.RevisedPropertiesColor = RevisionColor.DarkRed;
revisionOptions.RevisedPropertiesEffect = RevisionTextEffect.Bold;

// Place a thick dark blue bar on the left side of the page next to lines affected by revisions
revisionOptions.RevisionBarsColor = RevisionColor.DarkBlue;
revisionOptions.RevisionBarsWidth = 15.0f;

// Show revision marks and original text
revisionOptions.ShowOriginalRevision = true;
revisionOptions.ShowRevisionMarks = true;

doc.Save(ArtifactsDir + "Document.ShowRevisionsInBalloons.pdf");
See Also