removeLineTool()

ICE Data Services -

removeLineTool()
Previous  Top  Next


removeLineTool( type, tagID )

Remove a specific line object originally drawn by drawLineRelative() or drawLineAbsolute(). The object is identified by its tagID.

Parameters

type
the type of linetool object to remove
tagID
the unique ID of the linetool object to remove


Usage

function main() {

   ...
   ...

   
if ( getBarState() == BARSTATE_NEWBAR ) {

      
//remove a specific linetool MOB object that was previously created
      
//with a tagID of 204
      removeLineTool( LineTool.MOB, 
204 );

      
//now we can start drawing new objects based on the current bar

   }

}


addLineTool()
clearLineTool()