[PowerPoint javascript API] Replace added image retaining it's z-index and other formatting

[PowerPoint javascript API] Replace added image retaining it's z-index and other formatting
6

Upvotes

Upvote

 Sep 21 2023
0 Comments 
New

With the current Office js API possibilities, to replace an image, we need to remove it and insert it again, which impacts previous z-index set by a user, as new object will always be uploaded on the top of the stack.

Would it be possible to replace an image without removing it and inserting?

 

use case: User stacks few images on the top of one another, our add-in enables user to refresh an image to import newest data, however after refreshing bottom image, it will end up being the top one, covering the images that should be on the top. This creates unnecessary effort for a user as he needs to adjust z-index every time each object is refreshed