The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ActivityDesigner::OnPaint Method (ActivityDesignerPaintEventArgs^)
.NET Framework (current version)
Draws the visual representation of the activity at design time.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Parameters
- e
-
Type:
System.Workflow.ComponentModel.Design::ActivityDesignerPaintEventArgs^
An ActivityDesignerPaintEventArgs that contains the event data.
| Exception | Condition |
|---|---|
| ArgumentNullException | e contains a null reference (Nothing in Visual Basic). |
The following example shows a custom ActivityDesigner that delegates the painting responsibility to the base class or draws itself based on a Boolean value. If useBasePaint is false, the custom activity will draw itself using the various methods of the ActivityDesignerPaint class.
.NET Framework
Available since 3.0
Available since 3.0
Show: