lineCountThrough

fun lineCountThrough(index: Int): Int?

Return

the amount of lines, counted from the cursor, whose span reaches index, or null when index lies past the end of the source

Parameters

index

an index within the source