Factory 介面

定義

提供可用來在 Outlook 增益集中執行其他工作的方法,例如建立表單區域控制項、表單區域資訊清單物件和自訂動作。

public interface class Factory : Microsoft::Office::Tools::Factory
[System.Runtime.InteropServices.Guid("787FA642-2A27-4626-84A9-EED0B47FA4A6")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface Factory : Microsoft.Office.Tools.Factory
[<System.Runtime.InteropServices.Guid("787FA642-2A27-4626-84A9-EED0B47FA4A6")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type Factory = interface
    interface Factory
Public Interface Factory
Implements Factory
屬性
實作

備註

若要取得 Factory 物件,請使用 Globals.Factory 專案中的屬性。 如需詳細資訊,請參閱 Office 專案中物件的全域存取

方法

CreateFormRegionCollection()

建立 IFormRegion 物件的 IList<T>

CreateFormRegionControl(FormRegion, IExtension)

建立可實作 FormRegionControl 介面的類別執行個體。

CreateFormRegionCustomAction()

使用預設名稱,建立可實作 FormRegionCustomAction 介面的類別執行個體。

CreateFormRegionCustomAction(String)

使用指定的名稱,建立可實作 FormRegionCustomAction 類別的類別執行個體。

CreateFormRegionInitializingEventArgs(Object, OlFormRegionMode, OlFormRegionSize, Boolean)

建立 FormRegionInitializingEventArgs 物件,提供表單區域 Factory 類別之 FormRegionInitializing 事件的資料。

CreateFormRegionManifest()

建立表單區域資訊清單,描述表單區域在 Outlook 中的顯示方式。

CreateImportedFormRegion(FormRegion, IImportedFormRegionExtension)

建立以 Outlook 表單儲存區 (*.ofs) 檔案為基礎的 Microsoft Office Outlook 表單區域。

GetRibbonFactory()

傳回您在執行階段可用來建立功能區控制項的物件。

(繼承來源 Factory)

適用於