RevisionOptions Class |
Namespace: Aspose.Words.Layout
The RevisionOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CommentColor |
Allows to specify the color to be used for comments.
Default value for this property is Red.
![]() If set this property to ByAuthor or NoHighlight values,
as the result this property will be set to default color. |
![]() ![]() | DeletedTextColor | |
![]() ![]() | DeletedTextEffect |
Allows to specify the effect to be applied to the deleted content Deletion.
Default value is StrikeThrough |
![]() ![]() | InsertedTextColor | |
![]() ![]() | InsertedTextEffect | |
![]() ![]() | MovedFromTextColor | |
![]() ![]() | MovedFromTextEffect |
Allows to specify the effect to be applied to the areas where content was moved from Moving.
Default value is DoubleStrikeThrough |
![]() ![]() | MovedToTextColor | |
![]() ![]() | MovedToTextEffect |
Allows to specify the effect to be applied to the areas where content was moved to Moving.
Default value is DoubleUnderline |
![]() ![]() | RevisedPropertiesColor |
Allows to specify the color to be used for content with changes of formatting properties FormatChange
Default value for this property is NoHighlight.
|
![]() ![]() | RevisedPropertiesEffect |
Allows to specify the effect for content areas with changes of formatting properties FormatChange
Default value is None |
![]() ![]() | RevisionBarsColor |
Allows to specify the color to be used for side bars that identify document lines containing revised information.
Default value for this property is Red.
|
![]() ![]() | RevisionBarsWidth |
Gets or sets width of revision bars, points.
|
![]() ![]() | ShowInBalloons |
Allows to specify whether the revisions are rendered in the balloons.
Default value for this property is None |
![]() ![]() | ShowOriginalRevision |
Allows to specify whether the original text should be shown instead of revised one.
Default value for this property is false.
|
![]() ![]() | ShowRevisionBars |
Allows to specify whether revision bars should be rendered near lines containing revised content.
Default value for this property is true.
|
![]() ![]() | ShowRevisionMarks |
Allow to specify whether revision text should be marked with special formatting markup.
Default value for this property is true.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(); Assert.IsFalse(doc.LayoutOptions.ShowHiddenText); Assert.IsFalse(doc.LayoutOptions.ShowParagraphMarks); // The appearance of revisions can be controlled from the layout options property doc.StartTrackRevisions("John Doe", DateTime.Now); doc.LayoutOptions.RevisionOptions.InsertedTextColor = RevisionColor.BrightGreen; doc.LayoutOptions.RevisionOptions.ShowRevisionBars = false; DocumentBuilder builder = new DocumentBuilder(doc); builder.Writeln( "This is a revision. Normally the text is red with a bar to the left, but we made some changes to the revision options."); doc.StopTrackRevisions(); // Layout options can be used to show hidden text too builder.Writeln("This text is not hidden."); builder.Font.Hidden = true; builder.Writeln( "This text is hidden. It will only show up in the output if we allow it to via doc.LayoutOptions."); doc.LayoutOptions.ShowHiddenText = true; doc.Save(ArtifactsDir + "Document.LayoutOptions.pdf");