Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Factory Interface

Provides methods you can use to perform miscellaneous tasks in a document-level customization, such as creating Ribbon controls at run time and adding smart tags to documents.

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

public interface Factory

The Factory type exposes the following members.

Public methodCreateActionCreates a Action object that represents an action for a smart tag.
Public methodCreateActionsPaneInfrastructure.
Public methodCreateBookmarkInfrastructure.
Public methodCreateBuildingBlockGalleryContentControlInfrastructure.
Public methodCreateComboBoxContentControlInfrastructure.
Public methodCreateControlSiteInfrastructure.
Public methodCreateDatePickerContentControlInfrastructure.
Public methodCreateDocumentInfrastructure.
Public methodCreateDropDownListContentControlInfrastructure.
Public methodCreateGroupContentControlInfrastructure.
Public methodCreatePictureContentControlInfrastructure.
Public methodCreatePlainTextContentControlInfrastructure.
Public methodCreateRichTextContentControlInfrastructure.
Public methodCreateSmartTagCreates a SmartTag object that represents a smart tag on a document.
Public methodCreateXMLNodeInfrastructure.
Public methodCreateXMLNodesInfrastructure.
Public methodGetRibbonFactoryReturns an object that you can use to create Ribbon controls at run time.
Public methodGetVstoObjectReturns a Microsoft.Office.Tools.Word.Document host item that extends the functionality of the specified native document object.
Public methodHasVstoObjectReturns a value that indicates whether a Microsoft.Office.Tools.Word.Document host item exists for the specified Word document object.

To get a Factory object, use the Globals.Factory property in your project. For more information, see Global Access to Objects in Office Projects.


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.

Important noteImportant

Smart tags are deprecated in Excel 2010 and Word 2010. You can still use the related APIs, but there is no smart tag functionality after Excel 2007 and Word 2007.

Community Additions

© 2015 Microsoft