RevisionTextEffect Enum
Wordize.Layout.RevisionTextEffect enum. Allows to specify decoration effect for revisions of document text.
RevisionTextEffect enumeration
Allows to specify decoration effect for revisions of document text.
public enum RevisionTextEffect
Values
| Name | Value | Description |
|---|---|---|
| None | 0 | Revised content has no special effects applied. This corresponds to NoHighlight. |
| Color | 1 | Revised content is highlighted with color only. |
| Bold | 2 | Revised content is made bold and colored. |
| Italic | 3 | Revised content is made italic and colored. |
| Underline | 4 | Revised content is underlined and colored. |
| DoubleUnderline | 5 | Revised content is double underlined and colored. |
| StrikeThrough | 6 | Revised content is stroked through and colored. |
| DoubleStrikeThrough | 7 | Revised content is double stroked through and colored. |
| Hidden | 8 | Revised content is hidden. |
Examples
Shows how to configure appearance of revisions upon document rendering.
ConverterContext context = new ConverterContext();
// Set color of deleted cell.
context.LayoutOptions.RevisionOptions.DeleteCellColor = RevisionColor.LightOrange;
// Configure appearance of delete text revisions.
context.LayoutOptions.RevisionOptions.DeletedTextColor = RevisionColor.Pink;
context.LayoutOptions.RevisionOptions.DeletedTextEffect = RevisionTextEffect.DoubleStrikeThrough;
// Set color of inserted cell.
context.LayoutOptions.RevisionOptions.InsertCellColor = RevisionColor.LightGreen;
// Configure appearance of insert text revisions.
context.LayoutOptions.RevisionOptions.InsertedTextColor = RevisionColor.Blue;
context.LayoutOptions.RevisionOptions.InsertedTextEffect = RevisionTextEffect.DoubleUnderline;
// Configure appearance of moved from text revisions.
context.LayoutOptions.RevisionOptions.MovedFromTextColor = RevisionColor.Violet;
context.LayoutOptions.RevisionOptions.MovedFromTextEffect = RevisionTextEffect.Color;
// Configure appearance of moved to text revisions.
context.LayoutOptions.RevisionOptions.MovedToTextColor = RevisionColor.Gray;
context.LayoutOptions.RevisionOptions.MovedToTextEffect = RevisionTextEffect.Color;
// Configure appearance of revised properties revisions.
context.LayoutOptions.RevisionOptions.RevisedPropertiesColor = RevisionColor.ClassicBlue;
context.LayoutOptions.RevisionOptions.RevisedPropertiesEffect = RevisionTextEffect.Underline;
Converter.Create(context)
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "RevisionOptions.Appearance.pdf")
.Execute();
See Also
- namespace Wordize.Layout
- assembly Wordize