GeometryCollectionSnapToNearest Method |
return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public Point SnapToNearest(
double x,
double y,
uint mode
)
Public Function SnapToNearest (
x As Double,
y As Double,
mode As UInteger
) As Point
public:
virtual Point^ SnapToNearest(
[InAttribute] double x,
[InAttribute] double y,
[InAttribute] unsigned int mode
) sealed
function SnapToNearest(x, y, mode);
Parameters
- x
- Type: SystemDouble
the x coordinate to snap, in page coordinates - y
- Type: SystemDouble
the y coordinate to snap, in page coordinates - mode
- Type: SystemUInt32
a combination of flags from the SnappingMode enumeration
Return Value
Type:
Pointa point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged
See Also