Image Viewer CP ActiveX Control

GetSelectionRect

 

Return the current position of selection rectangle.

Public Function GetSelectionRect (
  ByVal iLeft As Integer , _
  ByVal iTop As Integer , _
  ByVal iWidth As Integer , _
  ByVal iHeight As Integer
) 

 

Parameter
iLeft - return the left-coordinate of the starting point of the rectangle.
iTop - return the top-coordinate of the starting point of the rectangle.
iWidth - return the width of rectangle.
iHeight - return the height of rectangle.

No Return Value

Example

   

Visual Basic Syntax
ImageViewer1.GetSelectionRect iLeft, iTop, iWidth, iHeight