Export (0) Print
Expand All
Expand Minimize

HitTestLocations Enumeration

Note: This API is now obsolete.

Describes the area of the designer that contains the point passed to a HitTest method.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public enum HitTestLocations

Member nameDescription
ActionAreaIndicates the area contained by the expand button was hit.
BottomIndicates that the bottom of the designer was hit.
ConnectorIndicates that a connector on the designer was hit.
DesignerIndicates that any part of the designer was hit.
LeftIndicates that the left part of the designer was hit.
NoneIndicates that no part of the designer was hit.
RightIndicates the right part of the designer was hit.
TopIndicates the top of the designer was hit.


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

HitTestLocations is used by HitTest methods to describe the area of the designer hit by mouse clicks and drag and drop operations. Use the HitTestLocations to decide what kind of action to take in response to a successful hit test.

The following example shows 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.

protected override CompositeActivity OnCreateNewBranch()
    return new ParallelIfBranch();

.NET Framework

Supported in: 4, 3.5, 3.0
Obsolete (compiler warning) in 4.5.2
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft