Finding Absolute Position of Shape inside the Worksheet
Contents[ Hide ]
Sometimes, you need to know the absolute position of a shape in a worksheet. Aspose.Cells provides the Shape.LeftToCorner and Shape.TopToCorner properties for this purpose. These properties return the absolute position of the shape inside the worksheet in pixels.
The following sample code displays the absolute position of the first shape in the worksheet in pixels. The sample code displays the following console output:
Absolute Position of this Shape is (320 , 183)