Aspose::Pub::Utils::Coord class

Coord class

This class designed to represent data related to coordinates of PUB fields. Every field in PUB holds coordinates has 2 pairs of coordinates: coordinates of upper-left corner (XLeft, YTop) and coordinates of bottom-right corner(XRight, YBottom). All coordinates represented in special metric system - English Metric Unit(EMUs). Additional methods were added into this class to transform coordinate values from english metric units into inches.

class Coord : public System::ICloneable

Methods

MethodDescription
CalculateHeight()Calculates height of figure(current Coord object) and returns result in inches.
CalculateWidth()Calculates width of figure(current Coord object) and returns result in inches.
CalculateX(double)Transforms value for X-coordinate from natural PUB metric system into inches.
CalculateX()Transforms value for X-coordinate from natural PUB metric system into inches.
CalculateY(double)Transforms value for Y-coordinate from natural PUB metric system into inches.
CalculateY()Transforms value for Y-coordinate from natural PUB metric system into inches.
Clone() overrideCreated copy of object.
Coord()Constructor.
Coord(int32_t, int32_t, int32_t, int32_t)Constructor.
get_XLeft() constX-coordinate of upper-left corner in EMUs.
get_XRight() constX-coordinate of bottom-right corner in EMUs.
get_YBottom() constY-coordinate of bottom-right corner in EMUs.
get_YTop() constY-coordinate of upper-left corner in EMUs.
GetHeight()Returns height of current Coord object in natural PUB metrics.
GetWidth()Returns width of current Coord object in natural PUB metrics.

See Also