RevisionOptions.InsertedTextEffect

RevisionOptions InsertedTextEffect property. Allows to specify the effect to be applied to the inserted content. Default value is Underline.

RevisionOptions.InsertedTextEffect property

Allows to specify the effect to be applied to the inserted content. Default value is Underline.

public RevisionTextEffect InsertedTextEffect { get; set; }

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionValues of Hidden and DoubleStrikeThrough are not allowed.

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