如何在 VS2008 中只有 DTE 对象的活动 Webforms 设计器中获取插入符位置?

发布于 2024-09-24 19:05:54 字数 242 浏览 0 评论 0原文

我想知道当前活动的 Webforms 设计器窗口中插入符所在位置的一些信息,但我只有 VS2008 的 DTE 对象。任何接近于此的内容都可能有所帮助,但我需要的是:

  • 知道与插入符所在位置相对应的 EditableDesignerRegion
  • 了解插入符在该可编辑区域的文本中的位置(特别是如果插入符位于最后可能的位置)该区域中的位置)

这些可编辑区域中可能有也可能没有 WebControl。

I want to know some information about where the caret is int the currently active webforms designer window, but I have only the DTE object of VS2008. Anything that gets close to this might help, but what I need is:

  • know the EditableDesignerRegion that corresponds to the place where the carret is
  • know the position of the carret in the text of that editable region (specifically if the caret is at the last possible position in that region)

These editable regions may or may not have WebControls inside them.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文