GetImageIndexByLocation(Point) Method (WpfImageViewer)
Returns the image index by location.
'Declaration
Public Function GetImageIndexByLocation( _
ByVal As System.Windows.Point _
) As System.Int32
public System.Int32 GetImageIndexByLocation(
System.Windows.Point
)
public: System.Int32 GetImageIndexByLocation(
System.Windows.Point
)
public:
System.Int32 GetImageIndexByLocation(
System.Windows.Point
)
Parameters
- point
- The point in image viewer space.
Return Value
Image index if point is located on image; otherwise, -1.
Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5