Share via


Factory Interface

Provides a method you can use to create Ribbon controls at run time in an application-level add-in.

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

Syntax

'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("857D6117-1E7B-422B-A9E3-F907304C709A")> _
Public Interface Factory
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("857D6117-1E7B-422B-A9E3-F907304C709A")]
public interface Factory

The Factory type exposes the following members.

Methods

  Name Description
Public method CreateAddIn Infrastructure.
Public method CreateCustomTaskPaneCollection Infrastructure.
Public method CreateSmartTagCollection Infrastructure.
Public method GetRibbonFactory Returns an object that you can use to create Ribbon controls at run time.

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 Namespace