In the Cells API, there is a way to read the Z order (layering) of shapes. However, is there a way to SET the order of a shape (move the shape up or down, or make it the top or bottom shape)?
Thanks, Jeff
In the Cells API, there is a way to read the Z order (layering) of shapes. However, is there a way to SET the order of a shape (move the shape up or down, or make it the top or bottom shape)?
Thanks, Jeff
Hi Jeff,
Currently, the feature (Brign to Front, Send to Back) you are asking for is not available. It has been logged into our System with ID CELLSNET-20878.
We will work on it and look for the viability of its implementation. We will update you accordingly.Thanks,
Thanks,
Jeff
Hi Jeff,
Please use the updated version Aspose.Cells5.1.3.8.zip attached. The issue has been fixed. Now you can set the Shape.ZOrderPosition property
Thanks,
I have tested the new DLL. The ZOrderPosition property works, however it seems to modify the order of images in the Shapes collection, by putting the Shape at the index represented by the ZOrder. For example consider this Shapes collection:
Now set the ZOrderPosition of "Picture 2" to 0. Now the Shapes collection looks like this:
This makes it difficult to set the ZOrderPosition while looping through the Shapes collection. Is this necessary? Can you make the the Z order independent of the index within the Shapes collection?
Thanks,
Jeff
<![endif]–>
Hi,
Well, in MS Excel, the order of the shape collection is same as ZOrder. We think Aspose.Cells works in the same way as MS Excel which it should be. You can try to confirm it in MS Excel manually. If you find different results in MS Excel, give us details with sample files here, we will check your issue.
Thank you.
The issues you have found earlier (filed as 20878) have been fixed in this update.
As per your message 265071, I confirmed your statement in my testing. The Z order in Excel is the same as the index of the Shape in the Shapes collection. I have re-worked our code to avoid any problems.
Thanks again for adding the ability of the ZOrderPosition property.
Jeff