ImageGear .NET v25.0 - Updated
HitTestCanvas Method




ImageGear.Presentation Assembly > ImageGear.Display Namespace > ImGearPresentationPageDisplay Class : HitTestCanvas Method
Screen position.
PageView control that contains the marks.
System context.
Offset from left.
Offset from top.
Returns the index of the mark located at the screen position [x, y].
Syntax
'Declaration
 
Public Function HitTestCanvas( _
   ByVal devicePoint As ImGearDoublePoint, _
   ByVal pageView As IImGearScrollableView, _
   ByVal context As Canvas, _
   ByVal offsetLeft As Integer, _
   ByVal offsetTop As Integer _
) As Integer
'Usage
 
Dim instance As ImGearPresentationPageDisplay
Dim devicePoint As ImGearDoublePoint
Dim pageView As IImGearScrollableView
Dim context As Canvas
Dim offsetLeft As Integer
Dim offsetTop As Integer
Dim value As Integer
 
value = instance.HitTestCanvas(devicePoint, pageView, context, offsetLeft, offsetTop)
public int HitTestCanvas( 
   ImGearDoublePoint devicePoint,
   IImGearScrollableView pageView,
   Canvas context,
   int offsetLeft,
   int offsetTop
)
public: int HitTestCanvas( 
   ImGearDoublePoint devicePoint,
   IImGearScrollableView* pageView,
   Canvas* context,
   int offsetLeft,
   int offsetTop
) 
public:
int HitTestCanvas( 
   ImGearDoublePoint devicePoint,
   IImGearScrollableView^ pageView,
   Canvas^ context,
   int offsetLeft,
   int offsetTop
) 

Parameters

devicePoint
Screen position.
pageView
PageView control that contains the marks.
context
System context.
offsetLeft
Offset from left.
offsetTop
Offset from top.

Return Value

Integer value.
Remarks
If there are no marks at [x,y], the return value from this method is -1.
See Also

Reference

ImGearPresentationPageDisplay Class
ImGearPresentationPageDisplay Members