संपादित करें

इसके माध्यम से साझा किया गया


IDesignerGlyphProviderService Interface

Definition

Caution

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

Allows activity designer developers to add custom glyph providers to an activity designer.

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
Attributes

Examples

The following code example shows how to obtain a IDesignerGlyphProviderService so that you can add a custom glyph provider to an activity designer. The code uses the AddGlyphProvider method to add the provider to the activity designer.

This code example is part of the Workflow Monitor SDK Sample from the ViewHost.cs file. 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);

Remarks

Note

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

Classes that implement this interface can add and remove custom glyph providers--any classes that implement the IDesignerGlyphProvider interface -- to and from ActivityDesigner classes.

Properties

GlyphProviders

Gets a generic read-only collection of designer glyph providers.

Methods

AddGlyphProvider(IDesignerGlyphProvider)

Adds a class that implements the IDesignerGlyphProvider interface to the list of glyph providers that an activity designer uses.

RemoveGlyphProvider(IDesignerGlyphProvider)

Removes the class that implements the IDesignerGlyphProvider interface to the list of glyph providers that an activity designer uses.

Applies to

See also