Connector Class

Definition

Caution

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

Represents a connector between two activity designers on a workflow design surface.

public class Connector : IDisposable
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class Connector : IDisposable
Inheritance
Connector
Attributes
Implements

Remarks

Nota

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

A connector is the line that appears on a workflow design surface that connects one activity designer to another. Connector provides methods and properties that allow you to customize how to draw a set of connectors when an activity designer is rendered at design time.

Constructors

Connector(ConnectionPoint, ConnectionPoint)

Initializes a new instance of the Connector class.

Properties

AccessibilityObject

Gets an AccessibleObject that accessibility applications use to adjust the application UI for users who have impairments.

Bounds

Gets the bounding rectangle for the connector on the workflow design surface.

ConnectorModified

Gets the value that indicates whether the Connector is modified.

ConnectorSegments

Gets a read-only collection of points that contains all segments found in the Connector.

ExcludedRoutingRectangles

Returns an empty array of Rectangle object. Derived classes populate this collection.

ParentDesigner

Gets the designer on which the connecter appears on the workflow design surface.

ParentView

Gets the workflow view associated with the connector.

Source

Gets or sets the ConnectionPoint where drawing of the Connector begins.

Target

Gets or sets the ConnectionPoint where drawing of the Connector ends.

Methods

Equals(Object)

Determines whether the current Connector is equal to the specified connector.

GetHashCode()

Returns the hash code for the current Connector.

GetService(Type)

Returns a service object of the specified type if it is available.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
HitTest(Point)

Returns a value that indicates whether the specified point resides on the current Connector.

Invalidate()

Invalidates the current Connector and causes it to be redrawn.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Offset(Size)

Changes the Connector height and width using the settings defined in the specified Size.

OnLayout(ActivityDesignerLayoutEventArgs)

Notifies the Connector that layout operations are occurring.

OnPaint(ActivityDesignerPaintEventArgs)

Renders the Connector on the workflow design surface.

OnPaintEdited(ActivityDesignerPaintEventArgs, Point[], Point[])

Used for drawing the Connector when it is dragged from one state to another.

OnPaintSelected(ActivityDesignerPaintEventArgs, Boolean, Point[])

Used for drawing a Connector that is selected by the user.

PerformLayout()

Performs layout tasks for the Connector.

SetConnectorSegments(ICollection<Point>)

Reroutes the connector from source to target if the connector has changed.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDisposable.Dispose()

Releases all resources used by the Connector.

Applies to

Produto Versões (Obsoleto)
.NET Framework 3.0, 3.5, 4.0 (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)