Image Viewer CP Gold SDK ActiveX Control ReferenceMethods ClearDrawRectangleByIndex Image Viewer CP ActiveX Control ClearDrawRectangleByIndex Clear specific index of DrawRectangle. Public Function ClearDrawRectangleByIndex( _ ByVal iIndex As Integer)As Bool Parameter iIndexthe first index is 0. Return ValueTrue - Delete successfulFALSE - FailedExample Visual Basic SyntaxiCount = ImageViewer1.GetCountDrawRectangleImageViewer1.ClearDrawRectangleByIndex iCount-1 'delete last item