Factory Interface
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.
Provides methods you can use to perform miscellaneous tasks in an Outlook add-in, such as creating form region controls, form region manifest objects, and custom actions.
public interface class Factory : Microsoft::Office::Tools::Factory
[System.Runtime.InteropServices.Guid("787FA642-2A27-4626-84A9-EED0B47FA4A6")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface Factory : Microsoft.Office.Tools.Factory
[<System.Runtime.InteropServices.Guid("787FA642-2A27-4626-84A9-EED0B47FA4A6")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type Factory = interface
interface Factory
Public Interface Factory
Implements Factory
- Attributes
- Implements
Remarks
To get a Factory object, use the Globals.Factory
property in your project. For more information, see Global Access to Objects in Office Projects.
Methods
CreateFormRegionCollection() |
Creates an IList<T> of IFormRegion objects. |
CreateFormRegionControl(FormRegion, IExtension) |
Creates a an instance of a class that implements the FormRegionControl interface. |
CreateFormRegionCustomAction() |
Creates an instance of a class that implements the FormRegionCustomAction interface with a default name. |
CreateFormRegionCustomAction(String) |
Creates an instance of a class that implements the FormRegionCustomAction class by using the specified name. |
CreateFormRegionInitializingEventArgs(Object, OlFormRegionMode, OlFormRegionSize, Boolean) |
Creates a FormRegionInitializingEventArgs object that provides data for the FormRegionInitializing event of the form region factory class. |
CreateFormRegionManifest() |
Creates a form region manifest that describes how the form region appears in Outlook. |
CreateImportedFormRegion(FormRegion, IImportedFormRegionExtension) |
Creates a Microsoft Office Outlook form region that is based on an Outlook Form Storage (*.ofs) file. |
GetRibbonFactory() |
Returns an object that you can use to create Ribbon controls at run time. (Inherited from Factory) |