_FormRegionStartup.BeforeFormRegionShow(FormRegion) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows an add-in to update the user interface of a form region before it is displayed.
public:
void BeforeFormRegionShow(Microsoft::Office::Interop::Outlook::FormRegion ^ FormRegion);
public void BeforeFormRegionShow (Microsoft.Office.Interop.Outlook.FormRegion FormRegion);
Parameters
- FormRegion
- FormRegion
The FormRegion object representing the form region that is to be displayed.
Remarks
This method lets Outlook pass the FormRegion object to the add-in, and allows an add-in to update the user interface of the form region before it is displayed so that, for instance, the text of labels can be changed or irrelevant content can be suppressed. It is called after the controls are instantiated and the layout is calculated, but before the form region is made visible.
When implementing this method, keep in mind that the item obtained from the FormRegion
parameter (that is, the Item property of the FormRegion object) is read-only.
For examples of add-ins in C# and Visual Basic .NET that implement FormRegionStartup, see code sample downloads on MSDN.