다음을 통해 공유


ApplicationFactory Interface

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.

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("7FB273FD-6B13-4113-B557-8F9BDF4E1B2D")> _
Public Interface ApplicationFactory _
    Inherits Factory
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("7FB273FD-6B13-4113-B557-8F9BDF4E1B2D")]
public interface ApplicationFactory : Factory

The ApplicationFactory type exposes the following members.

Methods

  Name Description
Public method _VtblGap1_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 CreateAddIn Infrastructure. (Inherited from Factory.)
Public method CreateCustomTaskPaneCollection Infrastructure. (Inherited from Factory.)
Public method CreateSmartTag 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.
.
Public method CreateSmartTagCollection Infrastructure. (Inherited from Factory.)
Public method GetRibbonFactory Returns an object that you can use to create Ribbon controls at run time. (Inherited from Factory.)
Public method GetVstoObject(_Workbook) Returns a Microsoft.Office.Tools.Excel.Workbook host item that extends the functionality of the specified native workbook object.
Public method GetVstoObject(_Worksheet) Returns a Microsoft.Office.Tools.Excel.Worksheet host item that extends the functionality of the specified native workbook object.
Public method GetVstoObject(ListObject) Returns a Microsoft.Office.Tools.Excel.ListObject that extends the functionality of the specified native list object.
Public method HasVstoObject(_Workbook) Returns a value that indicates whether a Microsoft.Office.Tools.Excel.Workbook host item exists for the specified Excel workbook object.
Public method HasVstoObject(_Worksheet) Returns a value that indicates whether a Microsoft.Office.Tools.Excel.Worksheet host item exists for the specified Excel worksheet object.
Public method HasVstoObject(ListObject) Returns a value that indicates whether a Microsoft.Office.Tools.Excel.ListObject exists for the specified native list 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.Excel Namespace