Frame 物件 (Outlook 表單指令碼)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. 您也可以使用控制項群組的圖文框與密切相關的內容。比方說,處理客戶訂單應用程式,您可能使用圖文框到群組的名稱、 地址和客戶的帳戶數目。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
CopyCopy 將物件的內容複製到剪貼簿。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 會使用預設的從上至下、從左至右定位順序,設定圖文框或頁面上每個控制項的 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 會傳回取得焦點的 ObjectReturns an Object that has the focus. 唯讀。Read-only.
BackColorBackColor 會傳回或設定指定物件背景色彩的 LongReturns or sets a Long that specifies the background color of the object. 可讀寫。Read/write.
BorderColorBorderColor 會傳回或設定指定物件框線色彩的 LongReturns 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 會傳回或設定出現在物件上,用來識別或描述該物件的 StringReturns or sets a String that appears on an object to identify or describe it. 可讀寫。Read/write.
CycleCycle 會傳回或設定Integer ,指定循環是否包括巢狀控制項圖文框中。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 會傳回或設定指定物件前景色彩的 LongReturns or sets a Long that specifies the foreground color of an object. 可讀寫。Read/write.
InsideHeightInsideHeight 會傳回Long ,指定的高度,以點為單位Frame內用戶端區。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 會傳回或設定 Boolean,指定是否在物件的整個背景中重複圖片。Returns 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 會傳回或設定單一指定的高度,以點為單位,可以在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 會傳回或設定單一指定之間的距離,以為單位的圖文框的左邊緣可見表單左邊緣。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 會傳回或設定單一指定之間的距離,以為單位圖文框的上邊緣可見表單上邊緣。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 會傳回或設定單一指定的寬度,以點為單位,可以在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 會傳回或設定 Integer,指定物件的視覺化外觀。Returns 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.