Partager via


Factory Interface

Provides methods you can use to add 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
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("DC85BAC7-611E-4138-AC2E-6DD213400575")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface Factory
[GuidAttribute("DC85BAC7-611E-4138-AC2E-6DD213400575")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface Factory

The Factory type exposes the following members.

Methods

  Name Description
Public method _VtblGap1_2 Infrastructure.
Public method _VtblGap2_11 Infrastructure.
Public method _VtblGap3_2 Infrastructure.
Public method 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.
.
Public method CreateActionsPane Infrastructure.
Public method CreateBookmark Infrastructure.
Public method CreateBuildingBlockGalleryContentControl Infrastructure.
Public method CreateComboBoxContentControl Infrastructure.
Public method CreateControlSite Infrastructure.
Public method CreateDatePickerContentControl Infrastructure.
Public method CreateDocument Infrastructure.
Public method CreateDropDownListContentControl Infrastructure.
Public method CreateGroupContentControl Infrastructure.
Public method CreatePictureContentControl Infrastructure.
Public method CreatePlainTextContentControl Infrastructure.
Public method CreateRichTextContentControl Infrastructure.
Public method 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.
.
Public method CreateXMLNode Infrastructure.
Public method CreateXMLNodes Infrastructure.
Public method GetRibbonFactory Returns an object that you can use to create Ribbon controls at run time.
Public method GetVstoObject Returns a Microsoft.Office.Tools.Word.Document host item that extends the functionality of the specified native document object.
Public method HasVstoObject Returns a value that indicates whether a Microsoft.Office.Tools.Word.Document host item exists for the specified Word document object.

Top

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.

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.

See Also

Reference

Microsoft.Office.Tools.Word Namespace