Partager via


FormRegion Interface

Represents a form region in an Outlook form.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<CoClassAttribute(GetType(FormRegionClass))> _
<GuidAttribute("0006305A-0000-0000-C000-000000000046")> _
Public Interface FormRegion _
    Inherits _FormRegion, FormRegionEvents_Event
'Usage
Dim instance As FormRegion
[CoClassAttribute(typeof(FormRegionClass))]
[GuidAttribute("0006305A-0000-0000-C000-000000000046")]
public interface FormRegion : _FormRegion, 
    FormRegionEvents_Event

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _FormRegion. For information about the event members of the COM object, see FormRegionEvents_Event.

The FormRegion object allows an add-in to add code behind a form region in a custom form to modify the appearance and behavior of the form region.

To obtain an instance of the FormRegion object, an add-in must implement the FormRegionStartup interface. Outlook allocates storage for the form region, instantiates an instance of the FormRegion object, and returns the FormRegion object in the GetFormRegionStorage method.

When the add-in closes the frame for the form region, the add-in must release the object for the form region.

For more infomation on programming a form region, see Extending a Form Region with an Add-in.

See Also

Reference

FormRegion Members

Microsoft.Office.Interop.Outlook Namespace