Click or drag to resize

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
)

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: Point
a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged
See Also