Share via


ApplicationFactory Interface

Definition

Provides methods you can use to perform miscellaneous tasks in application-level add-ins, such as creating Ribbon controls at run time and adding smart tags to worksheets.

public interface class ApplicationFactory : Microsoft::Office::Tools::Factory
[System.Runtime.InteropServices.Guid("7FB273FD-6B13-4113-B557-8F9BDF4E1B2D")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ApplicationFactory : Microsoft.Office.Tools.Factory
[<System.Runtime.InteropServices.Guid("7FB273FD-6B13-4113-B557-8F9BDF4E1B2D")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ApplicationFactory = interface
    interface Factory
Public Interface ApplicationFactory
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.

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.

Methods

CreateAction(String)

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..

CreateSmartTag(String, String, ISmartTagExtension)

Creates a SmartTag object that represents a smart tag on a worksheet. 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..

GetRibbonFactory()

Returns an object that you can use to create Ribbon controls at run time.

(Inherited from Factory)
GetVstoObject(_Workbook)

Returns a Workbook host item that extends the functionality of the specified native workbook object.

GetVstoObject(_Worksheet)

Returns a Worksheet host item that extends the functionality of the specified native workbook object.

GetVstoObject(ListObject)

Returns a ListObject that extends the functionality of the specified native list object.

HasVstoObject(_Workbook)

Returns a value that indicates whether a Workbook host item exists for the specified Excel workbook object.

HasVstoObject(_Worksheet)

Returns a value that indicates whether a Worksheet host item exists for the specified Excel worksheet object.

HasVstoObject(ListObject)

Returns a value that indicates whether a ListObject exists for the specified native list object.

Applies to