Image Viewer CP Pro ActiveX Control ReferenceMethods GetCountDrawRectangle Image Viewer CP ActiveX Control GetCountDrawRectangle Get the count of DrawRectangle. Public Function GetCountDrawRectangle()As Integer No Parameter Return Valuereturn the count of DrawRectangle.Example Visual Basic SyntaxiCount = ImageViewer1.GetCountDrawRectangleImageViewer1.ClearDrawRectangleByIndex iCount-1 'delete last item