Class UserInteractiveObject
- Namespace
- LightningChartLib.WinForms.Charting
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
User interaction base class, handles basic user interactions on some chart object.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class UserInteractiveObject : UserInteractiveObjectInt, IChartNode, IDisposable
- Inheritance
-
UserInteractiveObject
- Implements
- Derived
- Inherited Members
Constructors
UserInteractiveObject()
Constructor.
public UserInteractiveObject()
UserInteractiveObject(IChartNode)
Constructor.
public UserInteractiveObject(IChartNode owner)
Parameters
ownerIChartNodeParent.
Properties
AllowUserInteraction
Gets or sets whether allow user interaction.
public bool AllowUserInteraction { get; set; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingboolTrue if managed resources should be disposed, otherwise false.
GetLastInteractiveEventArguments()
public UserInteractiveDeviceEventArgs GetLastInteractiveEventArguments()
Returns
- UserInteractiveDeviceEventArgs
returns M:LightningChartLib.WinForms.Charting.UserInteractiveObject.GetLastInteractiveEventArguments
HandleNotOver()
Handle event when not over.
protected virtual void HandleNotOver()
HandleOver()
Handle when over.
protected virtual void HandleOver()
InvokeButtonClickEvent()
Invoke ButtonClick event.
protected virtual bool InvokeButtonClickEvent()
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.UserInteractiveObject.InvokeButtonClickEvent
InvokeButtonDoubleClickEvent()
Invoke ButtonDoubleClick event.
protected virtual bool InvokeButtonDoubleClickEvent()
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.UserInteractiveObject.InvokeButtonDoubleClickEvent
InvokeButtonDownEvent()
Invoke ButtonDown event.
protected virtual bool InvokeButtonDownEvent()
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.UserInteractiveObject.InvokeButtonDownEvent
InvokeButtonUpEvent()
Invoke ButtonUp event.
protected virtual bool InvokeButtonUpEvent()
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.UserInteractiveObject.InvokeButtonUpEvent
InvokeOverOffEvent()
Invoke OverOff event.
protected virtual bool InvokeOverOffEvent()
Returns
- bool
true if event was delivered. See LightningChart.RaiseEvent method for more information. Return value of that is used.
InvokeOverOnEvent()
Invoke OverOn event.
protected virtual bool InvokeOverOnEvent()
Returns
- bool
true if event was delivered. See LightningChart.RaiseEvent method for more information. Return value of that is used.
IsPositionOver(int, int, bool)
Defines if position is over an item.
public virtual bool IsPositionOver(int x, int y, bool useDIP = false)
Parameters
Returns
- bool
true if position is over item, false otherwise
SetChartCursor(Cursor)
Set chart cursor.
protected virtual void SetChartCursor(Cursor cursor)
Parameters
cursorCursorCursor
SetItemDragStartPosition()
Item center position when dragging starts.
protected virtual void SetItemDragStartPosition()
SetProperCursor()
Set proper drag cursor. Default is hand.
public virtual void SetProperCursor()
ToString()
Item to string.
public override string ToString()
Returns
- string
returns M:LightningChartLib.WinForms.Charting.UserInteractiveObject.ToString
Events
MouseClick
Mouse button has been clicked.
public virtual event MouseEventHandler MouseClick
Event Type
MouseDoubleClick
Mouse button has been doubleclicked.
public virtual event MouseEventHandler MouseDoubleClick
Event Type
MouseDown
Mouse button has been pressed down.
public virtual event MouseEventHandler MouseDown
Event Type
MouseOverOff
Mouse has been moved outside of object.
public virtual event MouseEventHandler MouseOverOff
Event Type
MouseOverOn
Mouse has been moved over object.
public virtual event MouseEventHandler MouseOverOn
Event Type
MouseUp
Mouse button has been released.
public virtual event MouseEventHandler MouseUp