Connector 類別

定義

警告

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

表示工作流程設計介面上兩個活動設計工具之間的接點。

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

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

接點就是出現在工作流程設計介面上,可將活動設計工具與其他設計工具連接在一起的線條。 Connector 提供了方法和屬性,可讓您自訂在設計階段中呈現活動設計工具時繪製一組接點的方式。

建構函式

Connector(ConnectionPoint, ConnectionPoint)

初始化 Connector 類別的新執行個體。

屬性

AccessibilityObject

取得協助工具應用程式用來為殘障使用者調整應用程式 UI 的 AccessibleObject

Bounds

取得工作流程設計介面上的接點週框。

ConnectorModified

取得值,這個值會指示是否已修改 Connector

ConnectorSegments

取得點唯讀集合,包含在 Connector 中找到的所有區段。

ExcludedRoutingRectangles

傳回矩形物件的空陣列。 衍生類別會填入這個集合。

ParentDesigner

取得工作流程設計介面上的設計工具,接點會顯示在這個設計工具上。

ParentView

取得與接點關聯的工作流程檢視。

Source

取得或設定 ConnectionPoint,這是開始繪製 Connector 之處。

Target

取得或設定 ConnectionPoint,這是結束繪製 Connector 之處。

方法

Equals(Object)

判斷目前的 Connector 是否與指定接點相等。

GetHashCode()

傳回目前 Connector 的雜湊程式碼。

GetService(Type)

傳回指定型別的服務物件 (如果有的話)。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
HitTest(Point)

傳回值,這個值表示指定點是否位在目前的 Connector 上。

Invalidate()

讓目前的 Connector 失效,並重新經過繪製。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Offset(Size)

使用指定 Connector 中定義的設定,變更 Size 的高度和寬度。

OnLayout(ActivityDesignerLayoutEventArgs)

通知 Connector 正在發生配置作業。

OnPaint(ActivityDesignerPaintEventArgs)

在工作流程設計介面上呈現 Connector

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

當從某一狀態拖曳至其他狀態時,可用於繪製接點。

OnPaintSelected(ActivityDesignerPaintEventArgs, Boolean, Point[])

用於繪製使用者選取的接點。

PerformLayout()

執行 Connector 的配置工作。

SetConnectorSegments(ICollection<Point>)

如果接點發生變更,會重設來源到目標的接點路徑。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IDisposable.Dispose()

釋放 Connector 所使用的所有資源。

適用於