This documentation is archived and is not being maintained.

ActivityDesignerPaint Class

Provides static methods used to draw user interface elements on activity designer surfaces. This class cannot be inherited.

System::Object
  System.Workflow.ComponentModel.Design::ActivityDesignerPaint

Namespace:  System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public ref class ActivityDesignerPaint abstract sealed

The ActivityDesignerPaint type exposes the following members.

  NameDescription
Public methodStatic memberDraw3DButtonDraws a 3-dimensional button on the activity designer surface.
Public methodStatic memberDrawExpandButtonDraws a button that is used to expand and collapse composite designers on the activity designer surface.
Public methodStatic memberDrawImage(Graphics, Image, Rectangle, DesignerContentAlignment)Draws an image on the activity designer surface by using a Graphics, an Image, a Rectangle, and a DesignerContentAlignment.
Public methodStatic memberDrawImage(Graphics, Image, Rectangle, Rectangle, DesignerContentAlignment, Single, Boolean)Draws an image on the activity designer surface by using a Graphics, an Image, a source and destination Rectangle, an DesignerContentAlignment, a single-precision floating-point number, and a Boolean value.
Public methodStatic memberDrawRoundedRectangleDraws a rounded rectangle on the activity designer surface.
Public methodStatic memberDrawTextDraws text on the activity designer surface.
Public methodStatic memberGetRoundedRectanglePathReturns the graphics path used to draw the specified rounded rectangle.
Top

The following example demonstrates a way to use the ActivityDesignerPaint class to draw a custom activity on the workflow design surface. A rounded rectangle is first drawn using the DrawRoundedRectangle method. Text is then drawn using DrawText and is placed at the location of the TextRectangle of the ActivityDesigner. Additionally, the Image associated with the ActivityDesigner is drawn using the DrawImage method of the ActivityDesignerPaint class. Finally, an expand button used by a CompositeActivity is drawn using the DrawExpandButton.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: