IFormRegionFactory.CreateFormRegion Method
Returns an instance of a class that implements the IFormRegion interface.
Assembly: Microsoft.Office.Tools.Outlook (in Microsoft.Office.Tools.Outlook.dll)
Parameters
- formRegion
- Type: Microsoft.Office.Interop.Outlook.FormRegion
A FormRegion that represents the native form region.
Return Value
Type: Microsoft.Office.Tools.Outlook.IFormRegionAn instance of a class that implements the IFormRegion interface.
If you manually create a form region factory class, you must also create a form region class that implements the IFormRegion interface.
Create an instance of the form region class in the CreateFormRegion method and return the object to Outlook.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.