wxHyperTextWindow::LineLength

int LineLength(intlineNo)

Returns the length of the specified line, or -1 if there is no such line.