New to Telerik UI for WinFormsStart a free 30-day trial

Base class for all models that form the ChartArea tree.

Definition

Constructors

Initializes a new instance of the ChartNode class.

C#
protected ChartNode()

Properties

Gets the index of this node in its owning typed collection. An AxisLabelModel for example will have this property set to the index of the label within the Labels collection.

C#
[Browsable(false)]
public int CollectionIndex { get; }

Gets the index of this node in its parent ChartElement nodes collection.

C#
[Browsable(false)]
public int Index { get; }

Gets a value indicating whether the node is laid-out on the chart scene.

C#
[Browsable(false)]
public bool IsArrangeValid { get; }

Gets a value indicating whether the logical tree this node is part of is loaded.

C#
[Browsable(false)]
public virtual bool IsTreeLoaded { get; }
Remarks:

This actually checks for a valid ChartAreaModel reference and asks whether the area itself is loaded. This value may differ from the current NodeState.

Gets the rectangle (in physical coordinates) where this node resides.

C#
[Browsable(false)]
public RadRect LayoutSlot { get; }

Gets the current state of the node.

C#
[Browsable(false)]
public NodeState NodeState { get; }

Gets the ChartElement where this node resides.

C#
[Browsable(false)]
public ChartElement Parent { get; }

Gets the IChartElementPresenter instance where this node is visualized.

C#
[Browsable(false)]
public virtual IChartElementPresenter Presenter { get; }

Methods

Arranges the node within the specified layout slot.

C#
public RadRect Arrange(RadRect rect, bool shouldRoundLayout = true)
Parameters:rectRadRectshouldRoundLayoutboolReturns:

RadRect

Core implementation for clearing a property value. Override to provide custom clearing logic.

C#
public override bool ClearValueCore(int key)
Parameters:keyint

The property key to clear.

Returns:

bool

true if the value was cleared successfully; otherwise, false.

Overrides: PropertyBagObject.ClearValueCore(int)

Delegates an "Invalidate" request to the owning IChartView instance (if any).

C#
public virtual void Invalidate()

Core implementation for setting a property value. Override to provide custom setting logic.

C#
public override bool SetValueCore(int key, object value)
Parameters:keyint

The property key.

valueobject

The property value to set.

Returns:

bool

true if the value was set successfully; otherwise, false.

Overrides: PropertyBagObject.SetValueCore(int, object)

Events

Occurs when a value of some property has changed.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged