TextPointer GetCharacterRect宽度始终返回零吗? [英] TextPointer GetCharacterRect Width always returns Zero?

查看:94
本文介绍了TextPointer GetCharacterRect宽度始终返回零吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一些代码,以突出显示RichTextBox中的TextRange.

I have some code that I'm writing to highlight a TextRange in a RichTextBox.


推荐答案

这是正确的行为;返回的Rect的宽度应始终为0.文档不同步.文档团队已经意识到了这个问题,因此希望文档将在v4的时间范围内进行更新.
This is the correct behavior; the returned Rect should always have a width of 0. The docs are just out of sync. The doc team is aware of this issue, so hopefully the docs will be updated in the v4 timeframe.


这篇关于TextPointer GetCharacterRect宽度始终返回零吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆