New to Telerik UI for WinForms? Start 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; }

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

Removes a property value and conditionally dispatches changing and changed notifications according to this node's tracking flags. A changing notification can cancel the removal.

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

The property key whose stored value is being removed.

Returns:

bool

When tracking is disabled, the base property-store result; otherwise, true if the removal is applied or false if the changing notification cancels it.

Overrides: PropertyBagObject.ClearValueCore(int)

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

C#
public virtual void Invalidate()

Applies a property value and conditionally dispatches changing and changed notifications according to this node's tracking flags. A changing notification can cancel the update.

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

The property key whose value is being changed.

valueobject

The value to store for key.

Returns:

bool

When tracking is disabled, the base property-store result; otherwise, true if the value is applied or false if it is unchanged or the changing notification cancels the update.

Overrides: PropertyBagObject.SetValueCore(int, object)

Events

Occurs when a value of some property has changed.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged