c# - WPF: How to get character coordinates in TextBlock? -


i have textblock customizing in code without xaml. 1 thing need coordinates character contained in textblock (eg. rect character relative textblock top left corner). how can go doing task? guess need implement custom method such

rect textblock.getrectforcharacter(int charindex); 

is there way can accomplish this? note textblock can multi-lined.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -