Muokkaa

Jaa


Page object (Outlook Forms Script)

Represents one page of a MultiPage or a single member of a Pages collection.

Remarks

Each Page object contains its own set of controls and does not necessarily rely on other pages in the collection for information. A Page inherits some properties from its container; the value of each inherited property is set by the container.

Reference a Page by its index value. The index value reflects the ordinal position of the Page within the collection. The index of the first Page in a collection is 0; the index of the second Page is 1; and so on.

The default name for the first Page is Page1. The default name for the second Page is Page2.

Methods

Name Description
Copy Copies the contents of an object to the Clipboard.
Cut Removes selected information from an object and transfers it to the Clipboard.
Paste Transfers the contents of the Clipboard to an object.
RedoAction Reverses the effect of the most recent Undo action.
Repaint Updates the display by redrawing the page.
Scroll Moves the scroll bar on an object.
SetDefaultTabOrder Sets the TabIndex property of each control on a frame or page, using a default top-to-bottom, left-to-right tab order.
UndoAction Reverses the most recent action that supports the Undo command.

Properties

Name Description
Accelerator Returns or sets the accelerator key for the page. Read/write.
ActiveControl Returns an Object that has the focus. Read-only.
CanPaste Returns a Boolean that specifies whether the Clipboard contains data that the object supports. Read-only.
CanRedo Returns a Boolean that specifies if the most recent Undo can be reversed. Read-only.
CanUndo Returns a Boolean that specifies whether the last user action can be undone. Read-only.
Caption Returns or sets a String that specifies the text that appears on the page. Read/write.
ControlTipText Returns and sets a String that specifies text that appears when the user briefly holds the mouse pointer over a control without clicking. Read/write.
Cycle Returns or sets an Integer that specifies whether cycling includes controls nested in a MultiPage. Read/write.
Enabled Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.
Index Returns or sets an Integer that specifies the position of a Page object in a Pages collection. Read/write.
InsideHeight Returns a Long that specifies the height, in points, of the client region inside a Page. Read-only.
InsideWidth Returns a Long that specifies the width, in points, of the client region inside a Page. Read-only.
KeepScrollBarsVisible Returns or sets an Integer that specifies whether scroll bars remain visible when not required. Read/write.
Name Returns or sets a String that specifies the name of an object. Read/write.
Parent Returns an Object that represents the parent object of the specified page. Read-only.
Picture Returns a String that specifies the full path name of a bitmap to display on a control. Read-only.
PictureAlignment Returns or sets an Integer that specifies the location of a background picture. Read/write.
PictureSizeMode Returns or sets an Integer that specifies how to display the background picture on a page. Read/write.
PictureTiling Returns or sets a Boolean that specifies whether a picture is repeated across the background of the object. Read/write.
ScrollBars Returns or sets an Integer that specifies whether a page has vertical scroll bars, horizontal scroll bars, or both. Read/write.
ScrollHeight 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 Page. Read/write.
ScrollLeft 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 Page. Read/write.
ScrollTop 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 Page. Read/write.
ScrollWidth 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 Page. Read/write.
Tag Returns or sets a String that specifies additional information about an object. Read/write.
VerticalScrollBarSide Returns or sets an Integer that specifies whether a vertical scroll bar appears on the right or left side of a page. Read/write.
Visible Returns or sets a Boolean that specifies whether a Page is visible or hidden. Read/write.
Zoom Returns or sets an Integer that specifies the percentage to increase or decrease the displayed image. Read/write.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.