Tab 键顺序 VSTO Excel

发布于 2024-08-08 05:38:23 字数 142 浏览 6 评论 0原文

我正在查看一些 VSTO excel 代码,在事件处理程序中似乎有一个主要的轮子重塑开关语句,该语句附加到每个控件(文本框、组合等),根据 Tag 属性(正在使用)调用 Focus()代替 tabIndex 属性)

Tab 键顺序与 VSTO 不同吗?

I'm looking through some VSTO excel code and there seems to be a major wheel reinvention swtich statement in an event handler which is attached to every control (text boxes, combos etc), calling Focus() depending on the Tag property (being used in place of a tabIndex property)

Is tab order alien to VSTO?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

呆头 2024-08-15 05:38:23

这些控件位于 Excel 工作表上,并相对于单元格放置。

单元格是与 Excel 交互的主要点,而不是控件。

但是,如果您只希望用户使用控件,则可以使用保护锁定单元格,并只允许他们访问控件。

实际上,您正在阻止他们点击单元格,因此只能访问您的控件。

注意:我不建议你这样做,但是,如果它满足你的要求......

The controls are sitting on an Excel worksheet, and are placed relative to cells.

Cells are the main point of interaction with Excel, rather than the controls.

However, if you only want users to use the controls, you can lock the cells using Protection, and only allow them access to the Controls.

Effectively, you are stopping them tabbing on the cells, so would only have access to your controls.

Note: I'm not recommending you do this, but, if it meets your requirements......

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文