DesignerGlyph Class
Draws a glyph at the top-most Z order position on an activity designer.
System.Workflow.ComponentModel.Design::DesignerGlyph
System.Workflow.ComponentModel.Design::CommentGlyph
System.Workflow.ComponentModel.Design::ConfigErrorGlyph
System.Workflow.ComponentModel.Design::LockedActivityGlyph
System.Workflow.ComponentModel.Design::ReadOnlyActivityGlyph
System.Workflow.ComponentModel.Design::SelectionGlyph
System.Workflow.ComponentModel.Design::ShadowGlyph
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
The DesignerGlyph type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DesignerGlyph | When implemented in a derived class, initializes a new instance of the DesignerGlyph class. |
| Name | Description | |
|---|---|---|
![]() | CanBeActivated | Gets a value indicating whether the DesignerGlyph can gain focus on the ActivityDesigner with which it is associated. |
![]() | Priority | Gets the priority setting for the designer glyph on the activity design surface. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetBounds | Returns the bounds for the glyph on the specified ActivityDesigner. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnActivate | Indicates to the glyph that an action has been performed which has activated the glyph. |
![]() | OnPaint | When overridden in a derived class, performs any tasks required to render the glyph on the activity designer surface. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | HighestPriority | Represents the highest priority possible for a DesignerGlyph. This value is a constant. |
![]() ![]() | LowestPriority | Represents the lowest priority possible for a DesignerGlyph. This value is a constant. |
![]() ![]() | NormalPriority | Represents the normal priority for a DesignerGlyph. This value is a constant. |
The DesignerGlyph class is the base class for all designer glyphs used on a workflow design surface.
Activity designer developers can use classes that inherit from DesignerGlyph to draw custom glyphs onto the surface of an ActivityDesigner. DesignerGlyph classes draw such glyphs at the top-level Z order, which places the custom glyph visually on top of all other glyphs on the designer based on the Priority value of the custom glyph. A lower value for the Priority property indicates a higher priority and therefore draws the glyph at the top-most Z order position on an activity designer.
Notes to InheritorsWhen you inherit from DesignerGlyph, you must override the following members: OnPaint.
The following code example demonstrates a glyph class that derives from the DesignerGlyph class. The code overrides the GetBounds and OnPaint methods.
This code example is part of the Workflow Monitor SDK Sample from the DesignerGlyphProvider.cs file. For more information, see Workflow Monitor.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
