The WinFormsInteractor type exposes the following members.

Constructors

  NameDescription
Public methodWinFormsInteractor()()()()
Creates a new WinForms interactor.
Public methodWinFormsInteractor(Object)
Creates a new WinForms interactor for the given object.

Methods

  NameDescription
Public methodCreateOrientationTransform
Create a transformation that applies the given orientation to the interactor.
(Inherited from Interactor.)
Public methodEnsureVisible
Makes sure that the viewer scrolls this interactor into view.
Public methodInvalidate
Invoke this method to mark the apearance of this interactor invalid, so that it gets repainted.
(Inherited from Interactor.)
Protected methodIsOver
Specifies whether a certain coordinate is considered to be part of the interactor. This can be used for irregularly shaped interactors, or interactors with "holes". By default, this method returns true, which means that all coordinates within the interactor Rectangle are included.
(Inherited from Interactor.)
Protected methodOnAttached
Invoked when the interactor gets attached to its parent.
(Inherited from Interactor.)
Protected methodOnDeselected
Invoked when the interactor got removed from the current selection.
Protected methodOnDetached
Invoked when the interactor gets detached from its parent.
(Overrides Interactor..::..OnDetached(EventArgs).)
Protected methodOnDragBegin
Invoked when the user starts to drag this interactor.
Protected methodOnDragDrop
Invoked when another object is dropped on this interactor.
Protected methodOnDragEnd
Invoked after the user has dragged this interactor.
Protected methodOnDragEnter
Invoked when another object gets dragged into this interactor.
Protected methodOnDragLeave
Invoked when another object gets dragged outside the interactor, or when dragging gets cancelled.
Protected methodOnDragOver
Invoked when another object is dragged over this interactor.
Protected methodOnDragSelectMouseDown
Invoked when the mouse went down to drag a selection.
Protected methodOnDragSelectMouseMove
Invoked while dragging a selection when the selection rectangle overlaps this interactor. This method will add the corresponding interactor to the current selection if Selectable is true.
Protected methodOnDragSelectMouseUp
Invoked when the mouse goes up after dragging a selection.
Protected methodOnGotFocus
Invoked after the interactor got the focus.
Protected methodOnKeyDown
Raised when a key is pressed while this interactor has the focus.
Protected methodOnKeyUp
Raised when a key is released while this interactor has the focus.
Protected methodOnLostFocus
Invoked after the interactor lost the focus.
Protected methodOnMouseClick
Invoked when the mouse is clicked in the interactor, i.e. a mouse down event has occurred and the mouse button has been released in the interactor as well.
Protected methodOnMouseDoubleClick
Invoked when a double-click occurs in the interactor.
Protected methodOnMouseDown
Invoked when a mouse button goes down in the interactor.
Protected methodOnMouseEnter
Invoked when the mouse enters the interactor.
Protected methodOnMouseHover
Invoked afer the mouse stays a short period of time in this interactor.
Protected methodOnMouseLeave
Invoked when the mouse leaves the interactor.
Protected methodOnMouseMove
Invoked when the mouse moves over this interactor.
Protected methodOnMouseUp
Invoked when the mouse button goes up in the interactor.
Protected methodOnPaint
Invoked when the interactor must paint itself.
Protected methodOnPaintDrag
Invoked when the interactor must paint a drag representation of itself.
Protected methodOnPaintOver
This method will be invoked after all child interactors have been painted.
Protected methodOnPaintShadow
Invoked to paint a shadow for this interactor.
Protected methodOnSelected
Invoked when the interactor got added to the current selection.
Public methodSendText
Sends the given text to the interator.

Properties

  NameDescription
Public propertyChilds
The child interactors of this interactor. This property may be null.
(Inherited from Interactor.)
Public propertyDragBehavior
Controls the dragging behavior of the interactor.
Public propertyHeight
The height of the interactor. Subclasses should override this method so that it correctlty reflects the height of the interactor.
(Overrides Interactor..::..Height.)
Public propertyHoverCursor
The cursor that will be used when the mouse hovers over the interactor. By default, the parent cursor is used.
Public propertyIsInteractive
Controls whether an interactor can be interacted with.
(Inherited from Interactor.)
Public propertyLayers
The layers of this interactor.
(Inherited from Interactor.)
Public propertyLayoutManager
The layout property controls the placement of sub-interactors relative to this one. This property may be null.
(Inherited from Interactor.)
Public propertyObject
The controlled object.
(Inherited from Interactor.)
Public propertyOpacity
A value between 0 and 1 that specifies the opacity of the interactor. 1 means fully opaque, 0 means fully transparent (i.e. invisible). The default is 1.
(Inherited from Interactor.)
Public propertyParent
The interactor that this interactor is a child of.
(Inherited from Interactor.)
Public propertyRectangle
The rectangle that this interactor occupies, including the space taken by its layers.
(Inherited from Interactor.)
Public propertyShadowDistance
The distance at which the shadow of the interactor will be drawn. This distance is relative to the parent, so that transformations on this interactor (such as rotations) do not influence the location of the shadow.
Public propertyToolTip
The tooltip for this interactor. Override this to return the proper information for this interactor. If null, no tooltip will be shown.
(Inherited from Interactor.)
Public propertyTransform
Transformation that is applied to the interactor before drawing, relative to the origin of its parent, i.e.:
  • If one applies this transformation to a local coordinate, one obtains the coordinates in the coordinate system of the parent.
  • If one uses this transformation to transform the parent coordinate system (CTM), one obtains the local coordinate system.
(Inherited from Interactor.)
Public propertyViewer
The viewer that this interactor is located in.
Public propertyViewerTransform
Transforms coordinates in the local coordinate system to the coordinate system of the viewer, i.e.:
  • If one applies this transformation to a local coordinate, one obtains the coordinates in the coordinate system of the viewer.
  • If one uses this transformation to transform the original viewer coordinate system (CTM), one obtains the local coordinate system.
(Inherited from Interactor.)
Public propertyVisibleRectangle
A rectangle that defines a the visible part of the interactor, in terms of its own coordinate system.
(Inherited from Interactor.)
Public propertyWidth
The width of the interactor. Subclasses should override this method so that it correctlty reflects the width of interactor.
(Overrides Interactor..::..Width.)

Events

  NameDescription
Public eventPreviewDragBegin
DragBegin preview event.
Public eventPreviewDragDrop
DragDrop preview event.
Public eventPreviewDragEnd
DragEnd preview event.
Public eventPreviewDragEnter
DragEnter preview event.
Public eventPreviewDragLeave
DragLeave preview event.
Public eventPreviewDragOver
DragOver preview event.
Public eventPreviewDragSelectMouseDown
DragSelectMouseDown preview event.
Public eventPreviewDragSelectMouseMove
DragSelectMouseMove preview event.
Public eventPreviewDragSelectMouseUp
DragSelectMouseUp preview event.
Public eventPreviewMouseDown
MouseDown preview event.
Public eventPreviewMouseMove
MouseMove preview event.
Public eventPreviewMouseUp
MouseUp preview event.

See Also