Add Replacement Annotation

How to add Replacement Annotation in C#

The Replacement annotation replaces original text with other provided text fragment. Please check the picture below to know how replacement annotation may look like. 

There is an ability to specify the next properties for ReplacementAnnotation type:

  • FontColor - color of annotation text;
  • Opacity - allows to set annotation opacity;
  • Points - annotation positions set by array of points;
  • TextToReplace - text that will be replaced 
     

Follow these steps to add Replacement annotation to document: 

The following code demonstrates how to add ReplacementAnnotation to the document:

More resources

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples: