将 Z-顺序用于图层控件Use z-order to layer controls

Z 顺序之前或之后放置控件:To place a control at the front or back of the z-order:

  1. 选择要重新定位的控件。Select the controls that you want to reposition.

  2. 从 "格式" 菜单中选择 "顺序"。From the Format menu, choose Order.

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

在 Z 顺序中将控件调整一个位置:To adjust a control one position in the z-order:

  1. 选择要重新定位的控件。Select the controls that you want to reposition.

  2. From the Format menu, choose Order.From the Format menu, choose Order.

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

备注

您无法撤消或恢复分层命令, 如 "置于底层" 或 "置于顶层"。You can't undo or redo layering commands, such as Send to Back or Bring to Front. 例如, 如果选择了一个对象, 并选择了快捷菜单上的 "下移一层", 则无法撤消或恢复该操作。For example, if you select an object and choose Send Backward on the shortcut menu, you won't be able to undo or redo that action.

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.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. 如果窗体包含任何**ListBoxFrame多页** 控件, 则这些控件将自动尽可能靠近堆栈的顶部移动。If the form includes any ListBox, Frame, or MultiPage controls, those controls automatically move as close as possible to the top of the stack. 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.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.

同样, 如果**** 将上移到ListBoxframe多页控件以外的控件, 则会将控件移动到靠近堆栈顶部的控件, 但不会将其移动到任何ListBoxFrame多页之上在堆栈中。Similarly, applying Bring Forward to a control other than a ListBox, Frame, or MultiPage will move the control closer to the top of the stack, but will not move it above any ListBox, Frame, or MultiPage in the stack.

直观地讲,这意味着,如果 ListBoxFrameMultiPage 以及其他任何 Microsoft Forms 控件在窗体上位于同一位置,则 ListBoxFrameMultiPage 将始终显示在其他控件之上。Visually, this means that if a ListBox, Frame, or MultiPage and any other Microsoft Forms control are in the same location on a form, the ListBox, Frame, or MultiPage will always appear on top of the other control. 如果 ListBoxFrameMultiPage 与其他 ListBoxFrameMultiPage 处于同一位置,则控件的 Z 顺序将确定哪个控件显示在另一个控件之上。If a ListBox, Frame, or MultiPage is in the same place as another ListBox, Frame, or MultiPage, the z-order of the controls determines which control appears on top of the other.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.