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
Post a Comment