IDesignerGlyphProviderService IDesignerGlyphProviderService IDesignerGlyphProviderService IDesignerGlyphProviderService Interface

定義

警告

此 API 現已淘汰。

可讓活動設計工具開發人員將自訂圖像 (Glyph) 提供者加入至活動設計工具中。Allows activity designer developers to add custom glyph providers to an activity designer.

public interface class IDesignerGlyphProviderService
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IDesignerGlyphProviderService
type IDesignerGlyphProviderService = interface
Public Interface IDesignerGlyphProviderService
屬性

範例

下列程式碼範例將示範如何取得 IDesignerGlyphProviderService,以便將自訂圖像提供者加入至活動設計工具中。The following code example shows how to obtain a IDesignerGlyphProviderService so that you can add a custom glyph provider to an activity designer. 程式碼使用 AddGlyphProvider 方法來加入提供者到活動設計工具中。The code uses the AddGlyphProvider method to add the provider to the activity designer.

這個程式碼範例是 ViewHost.cs 檔案中<工作流程監視器 SDK>範例的一部分。This code example is part of the Workflow Monitor SDK Sample from the ViewHost.cs file. WorkflowMonitorDesignerGlyphProvider型別定義在範例程式碼中。The type WorkflowMonitorDesignerGlyphProvider is defined in the sample code. 如需詳細資訊, 請參閱工作流程監視器For more information, see Workflow Monitor.

this.workflowViewValue = new WorkflowView(this.surface);
this.workflowViewValue.ZoomChanged += new EventHandler(workflowViewValue_ZoomChanged);

備註

注意

此資料討論已被汰換的類型及命名空間。This material discusses types and namespaces that are obsolete. 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

實作這個介面的類別可以從 IDesignerGlyphProviderActivityDesigner類別移除或在其中加入自訂圖像提供者 (任何實作 介面的類別)。Classes that implement this interface can add and remove custom glyph providers--any classes that implement the IDesignerGlyphProvider interface -- to and from ActivityDesigner classes.

屬性

GlyphProviders GlyphProviders GlyphProviders GlyphProviders

取得設計工具圖像提供者的泛型唯讀集合。Gets a generic read-only collection of designer glyph providers.

方法

AddGlyphProvider(IDesignerGlyphProvider) AddGlyphProvider(IDesignerGlyphProvider) AddGlyphProvider(IDesignerGlyphProvider) AddGlyphProvider(IDesignerGlyphProvider)

加入將 IDesignerGlyphProvider 介面實作到活動設計工具使用之圖像提供者清單的類別。Adds a class that implements the IDesignerGlyphProvider interface to the list of glyph providers that an activity designer uses.

RemoveGlyphProvider(IDesignerGlyphProvider) RemoveGlyphProvider(IDesignerGlyphProvider) RemoveGlyphProvider(IDesignerGlyphProvider) RemoveGlyphProvider(IDesignerGlyphProvider)

移除將 IDesignerGlyphProvider 介面實作到活動設計工具使用之圖像提供者清單的類別。Removes the class that implements the IDesignerGlyphProvider interface to the list of glyph providers that an activity designer uses.

適用於

另請參閱