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

NameValueDescription
None0Revised content has no special effects applied. This corresponds to NoHighlight.
Color1Revised content is highlighted with color only.
Bold2Revised content is made bold and colored.
Italic3Revised content is made italic and colored.
Underline4Revised content is underlined and colored.
DoubleUnderline5Revised content is double underlined and colored.
StrikeThrough6Revised content is stroked through and colored.
DoubleStrikeThrough7Revised content is double stroked through and colored.
Hidden8Revised 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