Table of Contents

Class ChartNode

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

Chart base node.

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

Constructors

ChartNode()

Constructor

public ChartNode()

ChartNode(IChartNode)

Constructor.

public ChartNode(IChartNode owner)

Parameters

owner IChartNode

Owner of node

Methods

CheckIfInvalidRefAndComplain(object)

Checks if the given object is null or disposed, and complains if it's not and returns true.

Idea of this is to do sanity checks on methods, allowing testing of object references required in the method.

Disposed check is done only on ChartNodes

Call this with required refs, and if the return value is false, exit the method or do something, but skip the usage and try to get out of the situation gracefully.

Notifies the user through LightningChartLib.WinForms.Charting.ChartNode.HandleChartMessage(LightningChartLib.WinForms.Charting.MessageSeverity,LightningChartLib.WinForms.Charting.MessageType,System.String,System.String,System.Boolean,System.Exception,System.Object). Null objects cause NullReference message and disposed objects cause DisposedObjectAction type message.

Severity is always RecoverableError.

protected bool CheckIfInvalidRefAndComplain(object item)

Parameters

item object

Item of which validity is to be checked.

Returns

bool

True if there was some problem with the reference.

CheckIfInvalidRefAndComplain(object[])

Checks if any of the given objects are null or disposed, and complains to user if they are, and returns true.

Idea of this is to do sanity checks on methods, allowing testing of object references required in the method.

This works identically to CheckIfInvalidRefAndComplain(object), but accepts multiple objects.

Disposed check is done only on ChartNodes

Call this with required refs, and if the return value is false, exit the method or do something, but skip the usage and try to get out of the situation gracefully.

Notifies the user through LightningChartLib.WinForms.Charting.ChartNode.HandleChartMessage(LightningChartLib.WinForms.Charting.MessageSeverity,LightningChartLib.WinForms.Charting.MessageType,System.String,System.String,System.Boolean,System.Exception,System.Object). Null objects cause NullReference message and disposed objects cause DisposedObjectAction type message.

Severity is always RecoverableError.

protected bool CheckIfInvalidRefAndComplain(object[] items)

Parameters

items object[]

Item of which validity is to be checked.

Returns

bool

True if there was some problem with any of the references.

Dispose()

Release all resources used by this instance.

public void Dispose()

Dispose(bool)

Clean up any resources being used.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed, otherwise false.