Or maybe you only want to fill the space?
Draw line.
Open Fill + Stroke dialog (Ctrl+Shift+F)
In the first tab, click on first square to give it a color
Then click on the icon in the top right corner of the dialog, a black 'heart'. This will fill all the spaces in the line.