SelectCurColor

Syntax

SelectCurColor

Remarks

Extends the selection forward until text with a different color is encountered.

Example

This example extends the selection from the beginning of the document to the first character formatted with a different color and then displays the number of characters in the selection:


StartOfDocument
SelectCurColor
n = Len(Selection$())
MsgBox "Contiguous characters with the same color:" + Str$(n)

See Also

CharColor, FormatFont, SelectCurFont