HitTestLocations Enumeration
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.Workflow.ComponentModel.DesignAssembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
| Member name | Description | |
|---|---|---|
| ActionArea | Indicates the area contained by the expand button was hit. | |
| Bottom | Indicates that the bottom of the designer was hit. | |
| Connector | Indicates that a connector on the designer was hit. | |
| Designer | Indicates that any part of the designer was hit. | |
| Left | Indicates that the left part of the designer was hit. | |
| None | Indicates that no part of the designer was hit. | |
| Right | Indicates the right part of the designer was hit. | |
| Top | Indicates the top of the designer was hit. |
The following example demonstrates the addition of a new branch using a designer based off of the CompositeActivityDesigner class. If CanInsertActivities returns true, a new branch is created using the InsertActivities method. A ConnectorHitTestInfo object is created as a parameter to the InsertActivities method using the location of the workflow designer by specifying the HitTestLocations.Designer flag. When this is finished, the EnsureVisibleContainedDesigner method is used to ensure that the newly added branch is displayed in the workflow designer.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.