Draw a line inside Canvas

I want to draw a line inside Canvas.
Is there any way?