Frame 对象(Outlook Forms 脚本)Frame object (Outlook Forms Script)

代表功能和视觉控件组。Represents a functional and visual control group.

说明Remarks

框架中的所有选项按钮都是互斥的,因此您可以使用frame创建选项组。All option buttons in a Frame are mutually exclusive, so you can use the Frame to create an option group. 您还可以使用Frame将控件与密切相关的内容组合在一起。例如,在处理客户订单的应用程序中,您可以使用Frame对客户的名称、地址和帐户数进行分组。You can also use a Frame to group controls with closely related contents.For example, in an application that processes customer orders, you might use a Frame to group the name, address, and account number of customers.

也可以使用 Frame 创建一组 ToggleButton 控件,但是这些切换按钮并不互斥。You can also use a Frame to create a group of ToggleButton controls, but the toggle buttons are not mutually exclusive.

若要创建一组互斥的 OptionButton 控件,可将这些按钮放在窗体上的 Frame 中,也可以使用 OptionButton.GroupName 属性。To create a group of mutually exclusive OptionButton controls, you can put the buttons in a Frame on your form, or you can use the OptionButton.GroupName property.

事件Events

名称Name 说明Description
ClickClick 当用户在控件内单击时发生。Occurs when the user clicks inside the control.

方法Methods

名称Name 说明Description
复制Copy 将对象的内容复制到剪贴板中。Copies the contents of an object to the Clipboard.
CutCut 从对象中删除选定的信息,并将其传输到剪贴板中。Removes selected information from an object and transfers it to the Clipboard.
PastePaste 将剪贴板的内容传输给对象。Transfers the contents of the Clipboard to an object.
RedoActionRedoAction 撤消最近的 "撤消" 操作的效果。Reverses the effect of the most recent Undo action.
RepaintRepaint 通过重绘框架来更新显示。Updates the display by redrawing the frame.
ScrollScroll 移动对象上的滚动条。Moves the scroll bar on an object.
SetDefaultTabOrderSetDefaultTabOrder 按默认的从上到下、从左到右的 Tab 键次序为框架或页上的每个控件设置 TabIndex 属性。Sets the TabIndex property of each control on a frame or page, using a default top-to-bottom, left-to-right tab order.
UndoActionUndoAction 取消支持 "撤消" 命令的最近一次操作。Reverses the most recent action that supports the Undo command.

属性Properties

名称Name 说明Description
ActiveControlActiveControl 返回一个具有焦点的 Object 类型的值。Returns an Object that has the focus. 只读。Read-only.
BackColorBackColor 返回或设置一个 Long 类型的值,指定对象的背景色。Returns or sets a Long that specifies the background color of the object. 读/写。Read/write.
BorderColorBorderColor 返回或设置一个 Long 类型的值,指定对象的边框颜色。Returns or sets a Long that specifies the border color of an object. 读/写。Read/write.
BorderStyleBorderStyle 返回或设置一个 Integer 类型的值,指定控件的边框类型。Returns or sets an Integer that specifies the type of border of the control. 读/写。Read/write.
CanPasteCanPaste 返回一个 Boolean 类型的值,该值指定剪贴板是否包含对象支持的数据。Returns a Boolean that specifies whether the Clipboard contains data that the object supports. 只读。Read-only.
CanRedoCanRedo 返回一个Boolean类型的值,指定是否可以还原最近的撤消Returns a Boolean that specifies if the most recent Undo can be reversed. 只读。Read-only.
CanUndoCanUndo 返回一个 Boolean 类型的值,该值指定是否可以撤消上一步用户操作。Returns a Boolean that specifies whether the last user action can be undone. 只读。Read-only.
CaptionCaption 返回或设置一个 String 类型的值,该值显示在某个对象上,用于识别或说明该对象。Returns or sets a String that appears on an object to identify or describe it. 读/写。Read/write.
CycleCycle 返回或设置一个Integer类型的值,该值指定循环是否包括嵌套在 Frame 中的控件。Returns or sets an Integer that specifies whether cycling includes controls nested in a Frame. 读/写。Read/write.
EnabledEnabled 返回或设置一个 Boolean,该值指定控件是否能接收焦点并响应用户生成事件。Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. 读/写。Read/write.
ForeColorForeColor 返回或设置一个 Long 类型的值,指定对象的前景色。Returns or sets a Long that specifies the foreground color of an object. 读/写。Read/write.
InsideHeightInsideHeight 返回一个Long ,该值指定框架内客户区域的高度(以磅为单位)。Returns a Long that specifies the height, in points, of the client region inside a Frame. 只读。Read-only.
InsideWidthInsideWidth 返回一个Long ,该值指定框架内客户区域的宽度(以为单位)。Returns a Long that specifies the width, in points, of the client region inside a Frame. 只读。Read-only.
KeepScrollBarsVisibleKeepScrollBarsVisible 返回或设置一个 Integer 类型的值,该值指定滚动条在不需要时是否仍然可见。Returns or sets an Integer that specifies whether scroll bars remain visible when not required. 读/写。Read/write.
MouseIconMouseIcon 返回一个 String,该值代表要分配给控件的自定义图标的完整路径名。Returns a String that represents the full path name of a custom icon that is to be assigned to the control. 只读。Read-only.
MousePointerMousePointer 返回或设置一个 Integer 类型的值,指定当用户将鼠标放在特定对象上时显示的指针类型。Returns or sets an Integer that specifies the type of pointer displayed when the user positions the mouse over a particular object. 读/写。Read/write.
PicturePicture 返回一个 String,该值指定要在控件上显示的位图的完整路径名。Returns a String that specifies the full path name of a bitmap to display on a control. 只读。Read-only.
PictureAlignmentPictureAlignment 返回或设置一个 Integer 类型的值,指定背景图片的位置。Returns or sets an Integer that specifies the location of a background picture. 读/写。Read/write.
PictureSizeModePictureSizeMode 返回或设置一个 Integer 类型的值,该值指定如何在 Frame 上显示背景图片。Returns or sets an Integer that specifies how to display the background picture on a Frame. 读/写。Read/write.
PictureTilingPictureTiling 返回或设置指定图片是否在对象背景上重复的 BooleanReturns or sets a Boolean that specifies whether a picture is repeated across the background of the object. 读/写。Read/write.
ScrollBarsScrollBars 返回或设置一个 Integer 类型的值,该值指定控件是具有垂直滚动条、水平滚动条还是同时具有这两者。Returns or sets an Integer that specifies whether a control has vertical scroll bars, horizontal scroll bars, or both. 可读/写。Read/write.
ScrollHeightScrollHeight 返回或设置一个Single类型的值,该值指定通过移动Frame上的滚动条可查看的整个区域的高度(以磅为单位)。Returns or sets a Single that specifies the height, in points, of the total area that can be viewed by moving the scroll bars on the Frame. 读/写。Read/write.
ScrollLeftScrollLeft 返回或设置一个 Single类型的值,该值指定可见窗体的左边缘与框架的左边缘之间的距离(以磅为单位)。Returns or sets a Single that specifies the distance, in points, of the left edge of the visible form from the left edge of the Frame. 读/写。Read/write.
ScrollTopScrollTop 返回或设置一个 Single类型的值,该值指定可见窗体的上边缘与框架的上边缘之间的距离(以磅为单位)。Returns or sets a Single that specifies the distance, in points, of the top edge of the visible form from the top edge of the Frame. 读/写。Read/write.
ScrollWidthScrollWidth 返回或设置一个 Single类型的值,该值指定通过移动Frame上的滚动条可查看的整个区域的宽度(以磅为单位)。Returns or sets a Single that specifies the width, in points, of the total area that can be viewed by moving the scroll bars on the Frame. 读/写。Read/write.
SpecialEffectSpecialEffect 返回或设置指定对象视觉外观的 IntegerReturns or sets an Integer that specifies the visual appearance of an object. 读/写。Read/write.
VerticalScrollBarSideVerticalScrollBarSide 返回或设置一个 Integer,该值指定垂直滚动条是出现在窗体右侧还是左侧。Returns or sets an Integer that specifies whether a vertical scroll bar appears on the right or left side of a frame. 读/写。Read/write.
ZoomZoom 返回或设置一个 Integer 类型的值,指定对显示图像放大或缩小的百分比。Returns or sets an Integer that specifies the percentage to increase or decrease the displayed image. 可读/写。Read/write.

支持和反馈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.