rect.topLine()

Return the top line of the rectangle.