Table of Contents

Class DraggableObject

Namespace
LightningChartLib.WinForms.Charting
Assembly
LightningChart.WinForms.Charting.NET4.dll

Draggable handler, handles dragging maneuvers of chart object.

[TypeConverter(typeof(ExpandableObjectConverter))]
public class DraggableObject : HighlightingItemBase, IChartNode, IDisposable, IHighlightingItem
Inheritance
DraggableObject
Implements
Derived
Inherited Members

Constructors

DraggableObject()

Constructor.

public DraggableObject()

DraggableObject(IChartNode)

Constructor.

public DraggableObject(IChartNode owner)

Parameters

owner IChartNode

Parent.

Properties

AllowDragging

Gets or sets whether dragging by user is allowed.

public bool AllowDragging { get; set; }

Property Value

bool

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed, otherwise false.

InvokeDraggedEvent()

Invoke DraggedByUser event.

protected virtual bool InvokeDraggedEvent()

Returns

bool
returns M:LightningChartLib.WinForms.Charting.DraggableObject.InvokeDraggedEvent

ResetLocation()

Reset location, if moved by mouse.

public void ResetLocation()

SetAllowDragging(bool)

internal change handler of the AllowDragging property.

protected virtual bool SetAllowDragging(bool value)

Parameters

value bool
param value M:LightningChartLib.WinForms.Charting.DraggableObject.SetAllowDragging(System.Boolean)

Returns

bool
returns M:LightningChartLib.WinForms.Charting.DraggableObject.SetAllowDragging(System.Boolean)

SetItemDragPosition(int, int, bool)

Set item drag end position.

protected virtual void SetItemDragPosition(int x, int y, bool FinalPosition)

Parameters

x int

X value.

y int

Y value.

FinalPosition bool

True if the position is set due to the end of dragging. Implemented original for snapping Smith markers.

SetProperCursor()

Set proper cursor. Default for dragging is hand and for resize SizeAll.

public override void SetProperCursor()

Events

DraggedByUser

Dragged by user.

public virtual event MouseEventHandler DraggedByUser

Event Type

MouseEventHandler