Put image annotations over the text using ZIndex

On this page

GroupDocs.Annotation v21.5 and later allows you to specify images placing order for the Word file formats. To do this, set the ZIndex property of the ImageAnnotation class.

The following code snippets shows how to specify a ZIndex of the image annotation:

ImageAnnotation area = new ImageAnnotation
{
    Box = new Rectangle(100, 100, 100, 100),
    Opacity = 0.7,
    PageNumber = 0,
    ImagePath = "www.google.com.ua/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png",
    Angle = 100,
    ZIndex = 3
};
Note
The feature is supported for Words files only. Other formats ignore this property

On this page