ActivityDesigner 類別

定義

警告

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

為所有活動設計工具元件提供強制基類。

public ref class ActivityDesigner : IDisposable, System::ComponentModel::Design::IDesignerFilter, System::ComponentModel::Design::IRootDesigner, System::Drawing::Design::IToolboxUser, System::Workflow::ComponentModel::Design::IPersistUIState, System::Workflow::ComponentModel::Design::IWorkflowRootDesigner
[System.Workflow.ComponentModel.Design.ActivityDesignerTheme(typeof(System.Workflow.ComponentModel.Design.ActivityDesignerTheme))]
public class ActivityDesigner : IDisposable, System.ComponentModel.Design.IDesignerFilter, System.ComponentModel.Design.IRootDesigner, System.Drawing.Design.IToolboxUser, System.Workflow.ComponentModel.Design.IPersistUIState, System.Workflow.ComponentModel.Design.IWorkflowRootDesigner
[System.Workflow.ComponentModel.Design.ActivityDesignerTheme(typeof(System.Workflow.ComponentModel.Design.ActivityDesignerTheme))]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class ActivityDesigner : IDisposable, System.ComponentModel.Design.IDesignerFilter, System.ComponentModel.Design.IRootDesigner, System.Drawing.Design.IToolboxUser, System.Workflow.ComponentModel.Design.IPersistUIState, System.Workflow.ComponentModel.Design.IWorkflowRootDesigner
[<System.Workflow.ComponentModel.Design.ActivityDesignerTheme(typeof(System.Workflow.ComponentModel.Design.ActivityDesignerTheme))>]
type ActivityDesigner = class
    interface IDesignerFilter
    interface IToolboxUser
    interface IPersistUIState
    interface IWorkflowRootDesigner
    interface IRootDesigner
    interface IDesigner
    interface IDisposable
[<System.Workflow.ComponentModel.Design.ActivityDesignerTheme(typeof(System.Workflow.ComponentModel.Design.ActivityDesignerTheme))>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityDesigner = class
    interface IDesignerFilter
    interface IToolboxUser
    interface IPersistUIState
    interface IWorkflowRootDesigner
    interface IRootDesigner
    interface IDesigner
    interface IDisposable
[<System.Workflow.ComponentModel.Design.ActivityDesignerTheme(typeof(System.Workflow.ComponentModel.Design.ActivityDesignerTheme))>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityDesigner = class
    interface IDisposable
    interface IDesignerFilter
    interface IDesigner
    interface IToolboxUser
    interface IPersistUIState
    interface IWorkflowRootDesigner
    interface IRootDesigner
Public Class ActivityDesigner
Implements IDesignerFilter, IDisposable, IPersistUIState, IRootDesigner, IToolboxUser, IWorkflowRootDesigner
繼承
ActivityDesigner
衍生
屬性
實作

備註

Note

此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的 Deprecated Types。

所有活動設計元件皆源自 ActivityDesigner。 它 ActivityDesigner 提供了一個簡單的設計器,讓使用者能在設計模式中視覺化設計活動。

ActivityDesigner 提供簡單的機制讓活動能參與設計表面的工作流程渲染。

ActivityDesigner 讓使用者自訂與活動相關的版面配置與繪圖。

ActivityDesigner 讓使用者可以擴展與該活動相關的元資料。

建構函式

名稱 Description
ActivityDesigner()
已淘汰.

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

屬性

名稱 Description
AccessibilityObject
已淘汰.

它會被 AccessibleObject 無障礙應用程式用來調整有障礙使用者的應用程式介面。

Activity
已淘汰.

Activity 設計師有關聯。

Bounds
已淘汰.

得到 a Rectangle ,包含設計者所包圍矩形的邏輯座標值。

DesignerActions
已淘汰.

取得與設定錯誤相關的動作陣列。

DesignerTheme
已淘汰.

取得活動設計師目前的設計師主題。

EnableVisualResizing
已淘汰.

會得到一個值,表示活動設計器是否可以在自由設計器中調整大小。

Glyphs
已淘汰.

獲得一套符文來裝飾設計師。

Image
已淘汰.

與設計師建立或設定 Image 相關聯。

ImageRectangle
已淘汰.

取得與設計者相關的影像以邏輯座標為包圍邊界的值。

InvokingDesigner
已淘汰.

取得或設定該活動的設計者,該活動會呼叫與當前活動設計者相關的活動。

IsLocked
已淘汰.

會得到一個值,表示是否可以修改與設計師相關的活動。

IsPrimarySelection
已淘汰.

會得到一個值,表示與設計師相關的活動是否是主要選擇。

IsRootDesigner
已淘汰.

會得到一個值,表示設計者是否為根設計者。

IsSelected
已淘汰.

會獲得一個值,表示是否選擇了與設計師相關的活動。

IsVisible
已淘汰.

會得到一個值,表示與設計師相關的活動是否在工作流程中可見。

Location
已淘汰.

取得或設定設計者在邏輯座標中的位置。

MessageFilters
已淘汰.

會獲得一組只讀的訊息過濾器,這些篩選器與活動設計器相關聯。

MinimumSize
已淘汰.

獲得活動設計師的最低尺寸。

ParentDesigner
已淘汰.

取得現有設計者的父設計者。

ParentView
已淘汰.

取得包含當前活動設計器的工作流程視圖。

ShowSmartTag
已淘汰.

會得到一個值,指示該活動是否應該顯示智慧標籤。

Size
已淘汰.

取得或設定 的大小 ActivityDesigner

SmartTagRectangle
已淘汰.

它會得到應該顯示智慧標籤的矩形。

SmartTagVerbs
已淘汰.

它會獲得一個只讀的設計器動作集合,並與活動設計器上的智慧標籤關聯。

Text
已淘汰.

取得或設定文字與設計師關聯。

TextRectangle
已淘汰.

取得文字矩形的邏輯座標值。

Verbs
已淘汰.

讓設計者所關聯的動詞集合。

方法

名稱 Description
CanBeParentedTo(CompositeActivityDesigner)
已淘汰.

回傳一個值,指示是否 CompositeActivity 可以設定為與設計者相關活動的父節點。

CanConnect(ConnectionPoint, ConnectionPoint)
已淘汰.

回傳一個值,指示是否能在當前活動設計器指定的連接點與目標活動設計器中指定的連接點之間建立連線。

CreateView(ViewTechnology)
已淘汰.

使用指定的 ViewTechnology 為當前活動設計器建立工作流程檢視。

Dispose()
已淘汰.

釋放 未管理的資源, ActivityDesigner 並可選擇性地釋放受管理資源。

Dispose(Boolean)
已淘汰.

釋放該職業所使用的 ActivityDesigner 資源。

DoDefaultAction()
已淘汰.

執行與設計師相關的預設 UI 動作。

EnsureVisible()
已淘汰.

移動螢幕可見區域,確保指定的設計師被看見。

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()
已淘汰.

當在派生類別中覆寫時,允許物件以確定性方式清理所有資源。

GetConnectionPoints(DesignerEdges)
已淘汰.

回傳一組只讀的連接點集合,供活動設計者沿指定的 DesignerEdges

GetConnections(DesignerEdges)
已淘汰.

回傳設計者用於連接的唯讀點集合。

GetHashCode()
已淘汰.

做為預設哈希函式。

(繼承來源 Object)
GetPreviewImage(Graphics)
已淘汰.

取得指定 Graphics活動設計者的影像。

GetRootDesigner(IServiceProvider)
已淘汰.

回傳與工作流程設計表面相關的設計師。

GetService(Type)
已淘汰.

嘗試從設計模式網站取得與設計師相關活動所需的指定服務類型。

GetType()
已淘汰.

取得目前實例的 Type

(繼承來源 Object)
HitTest(Point)
已淘汰.

在螢幕指定點取得 ActivityDesigner 的資訊。

Initialize(Activity)
已淘汰.

初始化設計器時會對應 Activity的 。

Invalidate()
已淘汰.

這會讓設計師的價值被否定。

Invalidate(Rectangle)
已淘汰.

在設計器上會使指定的矩形失效。

IsCommentedActivity(Activity)
已淘汰.

回傳一個值,表示目前設計師的活動是否被註解,或是在註解活動中。

IsSupportedActivityType(Type)
已淘汰.

回傳一個值,表示若活動設計者是根設計者,則是否支援指定活動類型。

LoadViewState(BinaryReader)
已淘汰.

從二進位串流載入設計者的視圖狀態。

MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
OnActivityChanged(ActivityChangedEventArgs)
已淘汰.

當所關聯的活動變更時,會 ActivityDesigner 通知

OnBeginResizing(ActivityDesignerResizeEventArgs)
已淘汰.

當使用者開始視覺化調整活動設計器大小時,當 ActivityDesigner 設計器處於 FreeformActivityDesigner.

OnConnected(ConnectionPoint, ConnectionPoint)
已淘汰.

當兩個連接點建立連線時,會 ActivityDesigner 通知

OnDragDrop(ActivityDragEventArgs)
已淘汰.

當拖放操作在設計界內完成時發生。

OnDragEnter(ActivityDragEventArgs)
已淘汰.

當拖放操作進行中,指標進入設計器邊界時會發生。

OnDragLeave()
已淘汰.

當拖放操作進行中,指標離開設計器範圍時會發生。

OnDragOver(ActivityDragEventArgs)
已淘汰.

當拖放操作進行中且指標在設計範圍內時,會發生這種情況。

OnEndResizing()
已淘汰.

當使用者完成視覺化調整活動設計器時,通知 當 ActivityDesigner 設計器處於 FreeformActivityDesigner

OnExecuteDesignerAction(DesignerAction)
已淘汰.

當使用者點擊與設計器相關的設定錯誤時,會 ActivityDesigner 通知

OnGiveFeedback(GiveFeedbackEventArgs)
已淘汰.

更新使用者執行拖曳操作時提供的視覺提示回饋。

OnKeyDown(KeyEventArgs)
已淘汰.

當設計師在鍵盤對焦時按下按鍵時會發生。

OnKeyUp(KeyEventArgs)
已淘汰.

當設計師在鍵盤對焦時放開按鍵時,會發生這種情況。

OnLayoutPosition(ActivityDesignerLayoutEventArgs)
已淘汰.

當使用者重新定位視覺提示或兒童活動設計器時,會通知用戶 ActivityDesigner

OnLayoutSize(ActivityDesignerLayoutEventArgs)
已淘汰.

回傳視覺提示大小或兒童活動設計器在 ActivityDesigner

OnMouseCaptureChanged()
已淘汰.

當滑鼠捕捉方式改變時會發生。

OnMouseDoubleClick(MouseEventArgs)
已淘汰.

當滑鼠按鍵在設計師身上多次點擊時會發生。

OnMouseDown(MouseEventArgs)
已淘汰.

當滑鼠按鍵且指標處於設計範圍時會發生。

OnMouseDragBegin(Point, MouseEventArgs)
已淘汰.

當使用者開始拖曳滑鼠在設計師身上時,會發生這種情況。

OnMouseDragEnd()
已淘汰.

當使用者停止在設計師上拖曳滑鼠時,會發生這種情況。

OnMouseDragMove(MouseEventArgs)
已淘汰.

當使用者將指標拖曳到設計師身上時,滑鼠每次移動都會發生。

OnMouseEnter(MouseEventArgs)
已淘汰.

當滑鼠首次進入設計界時發生。

OnMouseHover(MouseEventArgs)
已淘汰.

當指標處於設計界線時會發生。

OnMouseLeave()
已淘汰.

當指標離開設計範圍時發生。

OnMouseMove(MouseEventArgs)
已淘汰.

當指標在設計界內移動時會發生。

OnMouseUp(MouseEventArgs)
已淘汰.

當指標在設計者範圍內時,滑鼠按鈕放開時會發生。

OnPaint(ActivityDesignerPaintEventArgs)
已淘汰.

在設計時繪製活動的視覺呈現。

OnProcessMessage(Message)
已淘汰.

允許設計師處理原始的 Win32 訊息。

OnQueryContinueDrag(QueryContinueDragEventArgs)
已淘汰.

控制拖曳操作是否繼續進行。

OnResizing(ActivityDesignerResizeEventArgs)
已淘汰.

當使用者在設計時視覺化調整尺寸時,會 ActivityDesigner 通知 只有當活動設計者是 的 FreeformActivityDesigner子節點時,才會呼叫此方法。

OnScroll(ScrollBar, Int32)
已淘汰.

當使用者改變捲軸位置時會 ActivityDesigner 通知

OnShowSmartTagVerbs(Point)
已淘汰.

在指定點顯示與智慧標籤相關的設計動詞。

OnSmartTagVisibilityChanged(Boolean)
已淘汰.

通知 ActivityDesigner 智慧標籤是否應該顯示或隱藏。

OnThemeChange(ActivityDesignerTheme)
已淘汰.

通知設計師相關主題已變更。

PerformLayout()
已淘汰.

更新設計師的版面配置。

PointToLogical(Point)
已淘汰.

將一個點從螢幕座標系轉換到活動設計座標系。

PointToScreen(Point)
已淘汰.

將一個點從活動設計座標系轉換到螢幕座標系。

PostFilterAttributes(IDictionary)
已淘汰.

當在衍生類別中覆寫時,設計者可以更改或移除透過 TypeDescriptor 暴露的屬性集合中的項目。

PostFilterEvents(IDictionary)
已淘汰.

當在衍生類別中覆寫時,設計者可以更改或移除透過 TypeDescriptor 暴露事件集合中的項目。

PostFilterProperties(IDictionary)
已淘汰.

當在衍生類別中覆寫時,允許設計者更改或移除透過 TypeDescriptor 暴露的屬性集合中的項目。

PreFilterAttributes(IDictionary)
已淘汰.

當在衍生類別中覆寫時,設計者能將項目加入其透過 TypeDescriptor 暴露的屬性集合中。

PreFilterEvents(IDictionary)
已淘汰.

當在衍生類別中覆寫時,允許設計者將項目加入其透過 TypeDescriptor 暴露的事件集合中。

PreFilterProperties(IDictionary)
已淘汰.

當在衍生類別中覆寫時,設計者可以將項目加入其透過 TypeDescriptor 暴露的屬性集合。

RectangleToLogical(Rectangle)
已淘汰.

將一個矩形從螢幕座標系轉換到活動設計者的座標系。

RectangleToScreen(Rectangle)
已淘汰.

將一個矩形從活動設計座標系轉換到螢幕座標系。

RefreshDesignerActions()
已淘汰.

刷新與設計器相關的設定錯誤。

RefreshDesignerVerbs()
已淘汰.

透過呼叫狀態處理器,刷新與設計者相關的活動設計者動詞。

SaveViewState(BinaryWriter)
已淘汰.

將設計者的視圖狀態儲存為二進位串流。

ShowInfoTip(String, String)
已淘汰.

顯示該資訊 ActivityDesigner 提示,包含指定的標題和文字。

ShowInfoTip(String)
已淘汰.

顯示指定的資訊提示。

ShowInPlaceTip(String, Rectangle)
已淘汰.

在指定的矩形位置顯示指定的工具提示。

ToString()
已淘汰.

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

(繼承來源 Object)

明確介面實作

名稱 Description
IDesigner.Component
已淘汰.

取得活動設計者所關聯的基礎元件。

IDesigner.DoDefaultAction()
已淘汰.

執行與設計者相關的預設動作。

IDesigner.Initialize(IComponent)
已淘汰.

初始化設計者並使用相關活動。

IDesigner.Verbs
已淘汰.

取得與活動設計者相關的設計時動詞。

IDesignerFilter.PostFilterAttributes(IDictionary)
已淘汰.

當在衍生類別中覆寫時,設計者可以更改或移除透過 TypeDescriptor 暴露的屬性集合中的項目。

IDesignerFilter.PostFilterEvents(IDictionary)
已淘汰.

當在衍生類別中覆寫時,設計者能更改或移除透過 TypeDescriptor 暴露的事件集合中的項目。

IDesignerFilter.PostFilterProperties(IDictionary)
已淘汰.

當在衍生類別中覆寫時,允許設計者更改或移除透過 TypeDescriptor 暴露的屬性集合中的項目。

IDesignerFilter.PreFilterAttributes(IDictionary)
已淘汰.

當在衍生類別中覆寫時,設計者能將項目加入其透過 TypeDescriptor 暴露的屬性集合中。

IDesignerFilter.PreFilterEvents(IDictionary)
已淘汰.

當在衍生類別中覆寫時,允許設計者將項目加入其透過 TypeDescriptor 暴露的事件集合中。

IDesignerFilter.PreFilterProperties(IDictionary)
已淘汰.

當在衍生類別中覆寫時,設計者可以將項目加入其透過 TypeDescriptor 暴露的屬性集合。

IPersistUIState.LoadViewState(BinaryReader)
已淘汰.

從二進位串流還原視圖狀態。

IPersistUIState.SaveViewState(BinaryWriter)
已淘汰.

將視圖狀態儲存為二進位串流。

IRootDesigner.GetView(ViewTechnology)
已淘汰.

回傳指定視圖技術的視圖物件。

IRootDesigner.SupportedTechnologies
已淘汰.

獲得活動設計師能支援的各種顯示技術。

IToolboxUser.GetToolSupported(ToolboxItem)
已淘汰.

判斷指定的工具箱項目是否被當前活動設計器支援。

IToolboxUser.ToolPicked(ToolboxItem)
已淘汰.

選擇指定的工具箱項目。

IWorkflowRootDesigner.InvokingDesigner
已淘汰.

取得或設定 CompositeActivityDesigner 請求初始化活動設計器的 。

IWorkflowRootDesigner.IsSupportedActivityType(Type)
已淘汰.

回傳一個值,指示該指定型別是否在當前 ActivityDesigner上被支援。

IWorkflowRootDesigner.MessageFilters
已淘汰.

取得與活動設計器相關的訊息過濾器。

IWorkflowRootDesigner.SupportsLayoutPersistence
已淘汰.

取得顯示實際工作流程根設計器是否支援版面持久化的值。

適用於