Connector 類別

定義

警告

此 API 現已淘汰。

表示工作流程設計介面上兩個活動設計工具之間的接點。Represents a connector between two activity designers on a workflow design surface.

public ref class Connector : IDisposable
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class Connector : IDisposable
type Connector = class
    interface IDisposable
Public Class Connector
Implements IDisposable
繼承
Connector
屬性
實作

備註

注意

此資料討論已被汰換的類型及命名空間。This material discusses types and namespaces that are obsolete. 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型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 提供了方法和屬性,可讓您自訂在設計階段中呈現活動設計工具時繪製一組接點的方式。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.

建構函式

Connector(ConnectionPoint, ConnectionPoint)

初始化 Connector 類別的新執行個體。Initializes a new instance of the Connector class.

屬性

AccessibilityObject

取得協助工具應用程式用來為殘障使用者調整應用程式 UI 的 AccessibleObjectGets 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

取得值,這個值會指示是否已修改 ConnectorGets the value that indicates whether the Connector is modified.

ConnectorSegments

取得點唯讀集合,包含在 Connector 中找到的所有區段。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

取得或設定 ConnectionPoint,這是開始繪製 Connector 之處。Gets or sets the ConnectionPoint where drawing of the Connector begins.

Target

取得或設定 ConnectionPoint,這是結束繪製 Connector 之處。Gets or sets the ConnectionPoint where drawing of the Connector ends.

方法

Equals(Object)

判斷目前的 Connector 是否與指定接點相等。Determines whether the current Connector is equal to the specified connector.

GetHashCode()

傳回目前 Connector 的雜湊程式碼。Returns the hash code for the current Connector.

GetService(Type)

傳回指定型別的服務物件 (如果有的話)。Returns a service object of the specified type if it is available.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
HitTest(Point)

傳回值,這個值表示指定點是否位在目前的 Connector 上。Returns a value that indicates whether the specified point resides on the current Connector.

Invalidate()

讓目前的 Connector 失效,並重新經過繪製。Invalidates the current Connector and causes it to be redrawn.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Offset(Size)

使用指定 Connector 中定義的設定,變更 Size 的高度和寬度。Changes the Connector height and width using the settings defined in the specified Size.

OnLayout(ActivityDesignerLayoutEventArgs)

通知 Connector 正在發生配置作業。Notifies the Connector that layout operations are occurring.

OnPaint(ActivityDesignerPaintEventArgs)

在工作流程設計介面上呈現 ConnectorRenders 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()

執行 Connector 的配置工作。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.

(繼承來源 Object)

明確介面實作

IDisposable.Dispose()

釋放 Connector 所使用的所有資源。Releases all resources used by the Connector.

適用於