Getting selected line length from Drawing in API?

Hi,

I want to get selected line length from any line of drawing view? 

Please could you guide me to do it?

 

Regards,

Mucip:)