FormRegion Members (Outlook)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a form region in an Outlook form.

Events

Name

Description

Close

Represents the closing of the frame for a form region, which occurs just before the Close event of the Inspector associated with the Outlook item.

Expanded

Occurs when the form region expands or collapses

Methods

Name

Description

Reflow

Causes Outlook to recalculate the height of an adjoining form region to display all the visible controls in the form region.

Select

Makes the form region the active form region such that it becomes visible.

SetControlItemProperty

Binds an explicit built-in property or a custom property to a control in the form region.

Properties

Name

Description

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

Detail

Returns or sets a String representing the text displayed at runtime in the header after the display name of an adjoining form region. Read/write.

DisplayName

Returns a String representing the display name of the form region. Read-only.

EnableAutoLayout

Returns or sets a Boolean that specifies whether to use the automatic layout resizing feature when designing form regions in the forms designer. Read/write

Form

Returns an Object representing the MSForms.UserForm object. Read-only.

FormRegionMode

Returns an OlFormRegionMode constant that indicates whether the form region is in a read page, compose page, or Reading Pane. Read-only.

Inspector

Returns an Inspector object representing the Inspector that hosts the form region. Read-only.

InternalName

Returns a String that represents the internal programmatic name of the form region as defined in the manifest for the form region. Read-only.

IsExpanded

Returns a Boolean that indicates if the form region is expanded. Read-only.

Item

Returns an Object corresponding to the Outlook item bound to the form region. Read-only.

Language

Returns a Long that indicates the LCID for the current language. Read-only.

Parent

Returns the parent Object of the form region. Read-only.

Session

Returns the NameSpace object for the current session. Read-only.

SuppressControlReplacement

Returns or sets a Boolean that disables Outlook from automatically replacing a Forms 2.0 control by a themed Outlook control at design time and runtime. Read/write.

Visible

Returns or sets a Boolean value that indicates whether the form region is visible or hidden. Read/write.