arrange menu : convert line to shape will give you a shape the same size as your line - it will however, be a fill with no outline [so not exactly as it would be if you'd traced around it ] - if you add outline it will change dimensions accordingly

cannot give gradient to an outline - you would need to convert as above, first