IDesignerGlyphProviderService 介面

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

可讓活動設計工具開發人員將自訂圖像 (Glyph) 提供者加入至活動設計工具中。

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

範例

下列程式碼範例將示範如何取得 IDesignerGlyphProviderService,以便將自訂圖像提供者加入至活動設計工具中。 程式碼使用 AddGlyphProvider 方法來加入提供者到活動設計工具中。

這個程式碼範例是 ViewHost.cs 檔案中<工作流程監視器 SDK>範例的一部分。 型別定義在範例程式碼中。 如需詳細資訊,請參閱 工作流程監視器

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

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

實作這個介面的類別可以從 類別移除或在其中加入自訂圖像提供者 (任何實作 介面的類別)。

屬性

GlyphProviders
已淘汰.

取得設計工具圖像提供者的泛型唯讀集合。

方法

AddGlyphProvider(IDesignerGlyphProvider)
已淘汰.

加入將 IDesignerGlyphProvider 介面實作到活動設計工具使用之圖像提供者清單的類別。

RemoveGlyphProvider(IDesignerGlyphProvider)
已淘汰.

移除將 IDesignerGlyphProvider 介面實作到活動設計工具使用之圖像提供者清單的類別。

適用於

另請參閱