Returns the shape index for a given shapefile located at a point (in pixel/mouse coordinates)
Namespace:
EGIS.Controls
Assembly:
EGIS.Controls (in EGIS.Controls.dll)
Syntax
Visual Basic |
---|
Public Function GetShapeIndexAtPixelCoord ( _
shapeIndex As Integer, _
pt As Point, _
pixelDelta As Integer _
) As Integer |
C# |
---|
public int GetShapeIndexAtPixelCoord(
int shapeIndex,
Point pt,
int pixelDelta
) |
Visual C++ |
---|
public:
int GetShapeIndexAtPixelCoord(
int shapeIndex,
Point pt,
int pixelDelta
) |
JavaScript |
---|
function getShapeIndexAtPixelCoord(shapeIndex, pt, pixelDelta); |
Parameters
- shapeIndex
- Type: System..::..Int32
The zero based index of the shapefile layer
- pt
- Type: System.Drawing..::..Point
The pixel point
- pixelDelta
- Type: System..::..Int32
The pixel delta value added to pt. I.E return shape under pt +/- delta pixels. A suitable value for delta is 5 to 8 pixels
Return Value
The zero based shape index, or -1 if no shape is located at pt
See Also