IFormRegionFactory Interface

 

Defines an interface that creates instances of classes that implement IFormRegion.

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

[GuidAttribute("0EA930C9-8CAB-4557-89D9-3BE282E4B926")]
public interface IFormRegionFactory

NameDescription
System_CAPS_pubpropertyKind

Gets the type of form region that the factory creates.

System_CAPS_pubpropertyManifest

Gets a collection of properties that describe how the form region appears in Microsoft Office Outlook.

NameDescription
System_CAPS_pubmethodCreateFormRegion(FormRegion)

Returns an instance of a class that implements the IFormRegion interface.

System_CAPS_pubmethodGetFormRegionStorage(Object, OlFormRegionMode, OlFormRegionSize)

Returns an Outlook Form Storage (.ofs) file.

System_CAPS_pubmethodIsDisplayedForItem(Object, OlFormRegionMode, OlFormRegionSize)

Returns a value that indicates whether the form region should appear for the specified Microsoft Office Outlook item.

The IFormRegionFactory interface defines methods that are used by Microsoft Office Outlook and the Outlook add-in to create instances of classes that implement IFormRegion.

When you add an Outlook Form Region item to an Outlook add-in project, Visual Studio adds a form region factory class to the project that implements the IFormRegionFactory interface.

You can also manually create a form region factory class that implements the IFormRegionFactory interface. If you do this, you must also create a form region class that implements IFormRegion.

Create an instance of the form region class in the CreateFormRegion method of the form region factory class.

Return to top
Show: