ApplicationFactory Interface
Provides methods you can use to perform miscellaneous tasks in application-level add-ins, such as extending native Word documents and creating Ribbon controls at run time.
Namespace: Microsoft.Office.Tools.Word
Assemblies: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
<GuidAttribute("E1FAF765-E4B2-4EBA-96B0-E8B82AE7AC95")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface ApplicationFactory _
Inherits Factory
[GuidAttribute("E1FAF765-E4B2-4EBA-96B0-E8B82AE7AC95")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface ApplicationFactory : Factory
The ApplicationFactory type exposes the following members.
Methods
Name | Description | |
---|---|---|
_VtblGap1_2 | Infrastructure. | |
CreateAction | Creates a Action object that represents an action for a smart tag. This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010. . |
|
CreateAddIn | Infrastructure. (Inherited from Factory.) | |
CreateCustomTaskPaneCollection | Infrastructure. (Inherited from Factory.) | |
CreateSmartTag | Creates a SmartTag object that represents a smart tag on a document. This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010. . |
|
CreateSmartTagCollection | Infrastructure. (Inherited from Factory.) | |
GetRibbonFactory | Returns an object that you can use to create Ribbon controls at run time. (Inherited from Factory.) | |
GetVstoObject | Returns a Microsoft.Office.Tools.Word.Document host item that extends the functionality of the specified native document object. | |
HasVstoObject | Returns a value that indicates whether a Microsoft.Office.Tools.Word.Document host item has been created for the specified native document object. |
Top
Remarks
To get an ApplicationFactory object, use the Globals.Factory property in your project. For more information, see Global Access to Objects in Office Projects.
Note
This interface is implemented by the Visual Studio Tools for Office runtime. It is not intended to be implemented in your code. For more information, see Visual Studio Tools for Office Runtime Overview.