GenericCoreConnectAction 類別

定義

核心設計介面的一般連接動作,可連接兩個不同的 ShapeElementsGeneric connect action for Core design surface that connects two distinct ShapeElements

public ref class GenericCoreConnectAction : Microsoft::VisualStudio::Modeling::Diagrams::ConnectAction
public class GenericCoreConnectAction : Microsoft.VisualStudio.Modeling.Diagrams.ConnectAction
type GenericCoreConnectAction = class
    inherit ConnectAction
Public Class GenericCoreConnectAction
Inherits ConnectAction
繼承
GenericCoreConnectAction

建構函式

GenericCoreConnectAction(Diagram, Boolean)

在本機儲存圖表的函式Constructor to save the diagram locally

屬性

CanBumpScroll

當 MouseMove 事件分派至此 MouseAction 時呼叫。Called when a MouseMove event has been dispatched to this MouseAction.

(繼承來源 MouseAction)
CurrentDiagramArgs

取得最新的 DiagramEventArgs。Gets the latest DiagramEventArgs. 可能會傳回 null 值。A null value may be returned.

(繼承來源 MouseAction)
CurrentMouseActionEvent

取得目前的 MouseAction 事件。Gets the current MouseAction event.

(繼承來源 MouseAction)
CurrentMouseActionState

取得目前的 MouseAction 狀態。Gets the current MouseAction state.

(繼承來源 MouseAction)
CurrentPoint

取得/設定目前事件的滑鼠位置。Gets/Sets the mouse position for the current event. 相對於圖表的左上角,此位置是以世界單位為單位。The position is in world units relative to the diagram's top-left.

(繼承來源 MouseAction)
DeferredFocusableItem

取得當 OnClicked 事件發生時,將成為選取範圍之焦點專案的專案。Gets the item that will become the selection's focused item if and when the OnClicked event occurs.

(繼承來源 SelectAction)
DeferredSelectableItem

取得當 OnClicked 事件發生時,選取範圍將設定為的專案。Gets the item that the selection will be set to if and when the OnClicked event occurs.

(繼承來源 SelectAction)
Diagram

這個 MouseAction 所屬的圖表。The Diagram to which this MouseAction belongs.

(繼承來源 MouseAction)
HasTooltip

取得此滑鼠動作是否支援動態工具提示。Gets whether this mouse action supports dynamic tooltip.

(繼承來源 MouseAction)
IsActive

取得值,這個值表示此 MouseAction 目前是否為使用中。Gets a value indicating whether this MouseAction is currently active.

(繼承來源 MouseAction)
MouseDownHitShape

取得最近的 MouseDown 事件的點擊圖形。Gets the hit shape of the most recent MouseDown event.

(繼承來源 MouseAction)
MouseDownPoint

取得最近的 MouseDown 事件的滑鼠位置。Gets the mouse position of the most recent MouseDown event. 相對於圖表的左上角,此位置是以世界單位為單位。The position is in world units relative to the diagram's top-left.

(繼承來源 MouseAction)
PreviousPoint

取得/設定上一個事件的滑鼠位置。Gets/Sets the mouse position of the previous event. 相對於圖表的左上角,此位置是以世界單位為單位。The position is in world units relative to the diagram's top-left.

(繼承來源 MouseAction)
ResetToolboxOnDragDrop

是否要在這個滑鼠動作所觸發的拖放作業之後重設工具箱選取範圍。Whether to reset toolbox selection after a drag-drop operation triggered by this mouse action. 基底執行一律會傳回 true,這表示在此滑鼠動作觸發的拖放作業之後,將會重設工具箱選取專案。Base implementation always returns true, which means the toolbox selection will be reset after a drag-drop operation triggered by this mouse action.

(繼承來源 MouseAction)
StickyMode

取得/設定布林值,指出連接動作是否可以執行多個連接。Gets/Sets a bool indicating if the connect action can perform multiple connections or not.

(繼承來源 ConnectAction)
TargetPoint (繼承來源 ConnectAction)
UpdateConnectionType

外來事件可判斷連接動作期間是否應鎖定連線類型External events can determine if connection type should be locked during connect action

(繼承來源 ConnectAction)

方法

Activate(DiagramClientView)

啟用此 MouseAction。Activates this MouseAction.

(繼承來源 MouseAction)
CanCancel(DiagramClientView)

取得值,這個值表示是否可以取消這個 MouseAction。Gets a value indicating whether this MouseAction can be canceled.

(繼承來源 MouseAction)
Cancel(DiagramClientView)

取消此 MouseAction。Cancels this MouseAction.

(繼承來源 MouseAction)
CanComplete(DiagramClientView)

取得值,這個值表示此 MouseAction 是否可以完成。Gets a value indicating whether this MouseAction can be completed.

(繼承來源 MouseAction)
CaptureMouse(DiagramClientView)

捕捉滑鼠。Captures the mouse.

(繼承來源 MouseAction)
Click(DiagramPointEventArgs)

由 DiagramClientView 呼叫,以將 Click 事件分派至此 MouseAction。Called by the DiagramClientView to dispatch a Click event to this MouseAction.

(繼承來源 MouseAction)
Complete(DiagramClientView)

完成此 MouseAction。Completes this MouseAction.

(繼承來源 MouseAction)
ContextMenuRequested(DiagramMouseEventArgs)

由 DiagramClientView 呼叫,以將 CoNtextMenu 事件分派至這個 MouseAction。Called by the DiagramClientView to dispatch a ContextMenu event to this MouseAction.

(繼承來源 MouseAction)
Dispose() (繼承來源 MouseAction)
Dispose(Boolean) (繼承來源 ConnectAction)
DoPaintFeedback(DiagramPaintEventArgs)

在 connect 動作期間意見反應實用資訊Feedbacks usefull information during connect action

(繼承來源 ConnectAction)
DoubleClick(DiagramPointEventArgs)

由 DiagramClientView 呼叫,以將 DoubleClick 事件分派至這個 MouseAction。Called by the DiagramClientView to dispatch a DoubleClick event to this MouseAction.

(繼承來源 MouseAction)
GetConnectionTypes(ShapeElement, ShapeElement)

僅支援 GenericCoreConnectionTypeOnly supports GenericCoreConnectionType

GetCursor(Cursor, DiagramClientView, PointD)

傳回連接動作游標Returns the connect action cursor

(繼承來源 ConnectAction)
GetCursorFromCursorType(ConnectActionCursor) (繼承來源 ConnectAction)
GetTooltipText(DiagramItem)

如果 HasTooltip 傳回 true,則取得所指定圖表專案的工具提示文字。Gets tooltip text for specified diagram item if HasTooltip returned true.

(繼承來源 MouseAction)
GotFocus(DiagramEventArgs)

由 DiagramClientView 呼叫,以將 GotFocus 事件分派至此 MouseAction。Called by the DiagramClientView to dispatch a GotFocus event to this MouseAction.

(繼承來源 MouseAction)
Invalidate(DiagramClientView)

由這個 MouseAction 呼叫以使其意見反應失效。Called by this MouseAction to invalidate its feedback.

(繼承來源 MouseAction)
LostFocus(DiagramEventArgs)

由 DiagramClientView 呼叫,以將 LostFocus 事件分派至此 MouseAction。Called by the DiagramClientView to dispatch a LostFocus event to this MouseAction.

(繼承來源 MouseAction)
MouseDown(DiagramMouseEventArgs)

由 DiagramClientView 呼叫,以將 MouseDown 事件分派至此 MouseAction。Called by the DiagramClientView to dispatch a MouseDown event to this MouseAction.

(繼承來源 MouseAction)
MouseEnter(DiagramPointEventArgs)

由 DiagramClientView 呼叫,以將 MouseEnter 事件分派至這個 MouseAction。Called by the DiagramClientView to dispatch a MouseEnter event to this MouseAction.

(繼承來源 MouseAction)
MouseHover(DiagramPointEventArgs)

由 DiagramClientView 呼叫,以將 MouseHover 事件分派至這個 MouseAction。Called by the DiagramClientView to dispatch a MouseHover event to this MouseAction.

(繼承來源 MouseAction)
MouseLeave(LeaveShapeEventArgs)

由 DiagramClientView 呼叫,以將 MouseLeave 事件分派至這個 MouseAction。Called by the DiagramClientView to dispatch a MouseLeave event to this MouseAction.

(繼承來源 MouseAction)
MouseMove(DiagramMouseEventArgs)

由 DiagramClientView 呼叫,以將 MouseMove 事件分派至此 MouseAction。Called by the DiagramClientView to dispatch a MouseMove event to this MouseAction.

(繼承來源 MouseAction)
MouseUp(DiagramMouseEventArgs)

由 DiagramClientView 呼叫,以將 MouseUp 事件分派至此 MouseAction。Called by the DiagramClientView to dispatch a MouseUp event to this MouseAction.

(繼承來源 MouseAction)
MouseWheel(DiagramMouseEventArgs)

由 DiagramClientView 呼叫,以將 CoNtextMenuRequested 事件分派至這個 MouseAction。Called by the DiagramClientView to dispatch a ContextMenuRequested event to this MouseAction.

(繼承來源 MouseAction)
OnClicked(MouseActionEventArgs) (繼承來源 ConnectAction)
OnContextMenuRequested(DiagramMouseEventArgs)

應該取消內容功能表上的連接動作,因為它會擲回例外狀況,否則,因為目標和來源專案在此案例中可能是 null。Should cancel connect action on context menu as it throws exceptions otherwise because target and source elements could be null in this case.

(繼承來源 ConnectAction)
OnDiagramGotFocus(DiagramEventArgs)

當 GotFocus 事件分派至此 MouseAction 時呼叫。Called when a GotFocus event has been dispatched to this MouseAction.

(繼承來源 MouseAction)
OnDiagramLostFocus(LostFocusEventArgs)

如果視圖失去焦點,則取消動作。Cancels the action if the view loses the focus.

(繼承來源 SelectAction)
OnDiagramScrolled(DiagramEventArgs)

當滾動事件已分派至此 MouseAction 時呼叫。Called when a Scrolled event has been dispatched to this MouseAction.

(繼承來源 ConnectAction)
OnDoubleClick(DiagramPointEventArgs)

在 DoubleClick 事件已分派至此 MouseAction 時呼叫。Called when a DoubleClick event has been dispatched to this MouseAction.

(繼承來源 MouseAction)
OnDragCanceled(MouseActionEventArgs)

在取消這個 MouseAction 的拖曳作業時呼叫。Called when this MouseAction's drag operation has been canceled.

(繼承來源 MouseAction)
OnDragCompleted(MouseActionEventArgs) (繼承來源 ConnectAction)
OnDraggingBegun(MouseActionEventArgs) (繼承來源 ConnectAction)
OnDraggingEnded(MouseActionEventArgs)

當這個 MouseAction 結束拖曳狀態時呼叫。Called when this MouseAction has exited the dragging state.

(繼承來源 MouseAction)
OnDragPendingBegun(MouseActionEventArgs)

當這個 MouseAction 輸入了拖曳/點擊暫止狀態時呼叫。Called when this MouseAction has entered the drag/click-pending state.

(繼承來源 MouseAction)
OnDragPendingEnded(MouseActionEventArgs)

當這個 MouseAction 結束拖曳/點擊暫止狀態時呼叫。Called when this MouseAction has exited the drag/click-pending state.

(繼承來源 MouseAction)
OnHoveringBegun(MouseActionEventArgs)

當這個 MouseAction 進入停留狀態時呼叫。Called when this MouseAction has entered the hovering state.

(繼承來源 MouseAction)
OnHoveringEnded(MouseActionEventArgs)

當這個 MouseAction 結束停留狀態時呼叫。Called when this MouseAction has exited the hovering state.

(繼承來源 MouseAction)
OnMouseActionActivated(DiagramEventArgs) (繼承來源 ConnectAction)
OnMouseActionCanceled(DiagramEventArgs) (繼承來源 ConnectAction)
OnMouseActionCompleted(DiagramEventArgs)

當 MouseAction 完成且準備好要停用時呼叫。Called when the MouseAction has completed and is ready to be deactivated.

(繼承來源 MouseAction)
OnMouseActionDeactivated(DiagramEventArgs) (繼承來源 ConnectAction)
OnMouseDown(DiagramMouseEventArgs) (繼承來源 ConnectAction)
OnMouseEnter(DiagramPointEventArgs)

在 MouseEnter 事件已分派至此 MouseAction 時呼叫。Called when a MouseEnter event has been dispatched to this MouseAction.

(繼承來源 MouseAction)
OnMouseHover(DiagramPointEventArgs)

在 MouseHover 事件已分派至此 MouseAction 時呼叫。Called when a MouseHover event has been dispatched to this MouseAction.

(繼承來源 MouseAction)
OnMouseLeave(LeaveShapeEventArgs) (繼承來源 ConnectAction)
OnMouseMove(DiagramMouseEventArgs) (繼承來源 ConnectAction)
OnMouseUp(DiagramMouseEventArgs) (繼承來源 ConnectAction)
OnMouseWheel(DiagramMouseEventArgs)

在滑鼠滾輪事件已分派至此 MouseAction 時呼叫。Called when a MouseWheel event has been dispatched to this MouseAction.

(繼承來源 MouseAction)
ReleaseMouse(DiagramClientView)

釋放滑鼠捕捉。Releases the mouse capture.

(繼承來源 MouseAction)
Scrolled(DiagramEventArgs)

由 DiagramClientView 呼叫,以將滾動的事件分派至此 MouseAction。Called by the DiagramClientView to dispatch a Scrolled event to this MouseAction.

(繼承來源 MouseAction)
Select(DiagramMouseEventArgs)

選取第一個可選取的圖表專案 (圖形、欄位或子欄位) 在滑鼠游標下,並將焦點設定為可接收焦點的第一個專案。Selects the first selectable diagram item (shape, field, or subfield) under the mouse cursor and sets focus to the first item that can receive focus.

(繼承來源 SelectAction)

事件

MouseActionActivated

在啟用 MouseAction 時發生。Occurs when the MouseAction is activated.

(繼承來源 MouseAction)
MouseActionDeactivated

當停用 MouseAction 時發生。Occurs when the MouseAction is deactivated.

(繼承來源 MouseAction)

適用於