将 Z-顺序用于图层控件

Z 顺序之前或之后放置控件:

  1. 选择要重新定位的控件。

  2. 从“ 格式 ”菜单中,选择“ 顺序”。

  3. From the cascading menu, select Bring to Front or Send to Back.

在 Z 顺序中将控件调整一个位置:

  1. 选择要重新定位的控件。

  2. From the Format menu, choose Order.

  3. From the cascading menu, select Bring Forward or Send Backward.

注意

无法撤消或重做分层命令,例如 “发送到后面”“置于最前面”。 例如,如果选择某个对象并在快捷菜单上选择“ 向后发送 ”,则无法撤消或重做该操作。

The Bring to Front, Bring Forward, Send to Back, and Send Backward menu choices let you change the z-order of a control relative to other controls. 如果窗体包含任何 ListBoxFrameMultiPage 控件,则这些控件会自动尽可能靠近堆栈顶部。 For example, applying Send Backward to a ListBox, Frame, or MultiPage moves the control below other ListBox, Frame, or MultiPage controls, but will not move it below any other type of control in the stack.

同样,将 Bring Forward 应用于 ListBoxFrameMultiPage 以外的控件会将控件移动到更靠近堆栈顶部,但不会将其移动到堆栈中任何 ListBoxFrameMultiPage 上方。

直观地讲,这意味着,如果 ListBoxFrameMultiPage 以及其他任何 Microsoft Forms 控件在窗体上位于同一位置,则 ListBoxFrameMultiPage 将始终显示在其他控件之上。 如果 ListBoxFrameMultiPage 与其他 ListBoxFrameMultiPage 处于同一位置,则控件的 Z 顺序将确定哪个控件显示在另一个控件之上。

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。