registerLineModifierHandler

fun registerLineModifierHandler(handler: (lineIndex: Int, modifier: TextBlock.LineModifier) -> Unit): TextBlock

Set the text block lines color chooser.

The handler function is called during the draw sequence, fot each line, to enable customizing each row.

If the modifier will overrider, per line, the global TextBlock settings like setForegroundColor

Return

this

Parameters

handler

a function that receives the line index and a LineModifier