Unfortunately there is no such function available at this time.
The only function we could easily expose is to get the style of a line, i.e. retrieve whether a line is a comment line. We can add a function like:
if AdvMemo.GetLineStyle(ALine).isComment then...
That is something we could add for the next update of TAdvMemo.
To get the same per token, i.e. at X,Y position will be a lot more work to integrate.
To get the same per token, i.e. at X,Y position will be a lot more work to integrate.