Table of Contents

Class SelectionAnchorActivity

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Implements selection anchors handling for the controls with selection capabilities.

public class SelectionAnchorActivity : BaseControlActivity, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, IControlNotification, IDisposable
Inheritance
SelectionAnchorActivity
Implements

Constructors

SelectionAnchorActivity()

Initializes a new instance of the SelectionAnchorActivity class.

Properties

ClickOffset

Gets the offset between the mouse-down location and the origin of the hit-test rectangle when dragging began.

HitTest

Gets or sets the hit test delegate to determine which part of the element was hit.

HitTestMouseDown

Gets the hit test result that was recorded when the last mouse-down event occurred.

HitTestMouseMove

Gets the hit test result for the most recent mouse move event.

HitTestRectangle

Gets or sets the delegate used to obtain the rectangle that corresponds to a specified hit test result.

IsDragging

Gets a value indicating whether a drag operation is currently in progress for this activity.

IsEnabled

Gets or sets a value indicating whether the activity is enabled.

Methods

AfterLostFocus(AbstractControl, LostFocusEventArgs)

This method is invoked when the control lost focus.

AfterMouseCaptureLost(AbstractControl, EventArgs)

Called after the control loses mouse capture.

AfterVisibleChanged(AbstractControl, EventArgs)

Called after the value of the Visible property changes.

BeforeMouseDown(AbstractControl, MouseEventArgs)

Called before the mouse button was pressed.

BeforeMouseMove(AbstractControl, MouseEventArgs)

Called before the mouse pointer was moved.

BeforeMouseUp(AbstractControl, MouseEventArgs)

Called before the mouse button was released.

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

GetHitTest(AbstractControl, PointD)

Performs a hit test on the specified control at the given click location.

GetHitTestRect(AbstractControl, int)

Returns the hit test rectangle for the specified control and hit test result.

ResetDragging(AbstractControl)

Resets the dragging state to its default value.

Events

AnchorMove

Occurs when an anchor is being moved during a drag operation.