This event method is called when either the ESC key is pressed or graph is deactivated while picking points. Derived classes can implement their own functionality for this event method.
Note: When overriding in a derived class, it is not necessary to prepend the declaration with the virtual keyword.
virtual void OnCancel()
For an example of using this event method, please see the Example Section in GetGraphPoints.