Unable to set RevisedPropertiesColor without RevisedPropertiesEffect on Aspose.words

Hi Team,

I noticed that just setting the revision properties color doesn’t work unless you also add revision properties effect. Is this intentional or a bug? Can someone please check and confirm ?

Not working case:

revisionOptions.setRevisedPropertiesColor(RevisionColor.BLUE);

Working case:

revisionOptions.setRevisedPropertiesColor(RevisionColor.BLUE);
revisionOptions.setRevisedPropertiesEffect(RevisionTextEffect.BOLD);

Thanks
KLDV Prasad

@Kldv This is an expected behavior. Bu default RevisedPropertiesEffect is None, that means the revised content has no special effects applied. This corresponds to NoHighlight. So there is no effect to apply the color to. If you need to mark the revised content with color only, you can use RevisionTextEffect.COLOR.

1 Like

@alexey.noskov

Thanks for reply, it’s working with RevisionTextEffect.COLOR :+1:

1 Like