How to track single line (explicitly no polyline)

Discussion created by Fossi on Apr 5, 2011

the Get Polyline From Mouse Clicks Snippet in the reference ( demonstrates very nice how to track a polyline using the rubberband interface.

Is there something similar for a straight? Or any possibility to restrict the snippet above accordingly?

What I would like to do in an Add-in is rubberband a single line, i.e. a straight line without any vertices. First mouseclick should define the origin and start the drawing of a line which you could rubberband to the destination where a click or doubleclick ends digitizing and returns the geometry.

Any hint would be appreciated.

Thanks in advance,

env: ArcObjects 10, VS2010, C#