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

Definition

Constructors

Initializes a new instance of the SparkNode class.

C#
protected SparkNode()

Properties

Gets the index of this node in its owning typed collection.

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

Gets the index of this node in its parent SparkElement 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 SparkAreaModel 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 SparkElement where this node resides.

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

Gets the ISparkElementPresenter instance where this node is visualized.

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

Gets the spark area whre this node resides.

C#
[Browsable(false)]
public SparkAreaModel SparkArea { 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 ISparkView 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)

C#
protected virtual void UpdateLayoutSlotHeight(double newHeight)
Parameters:newHeightdouble
C#
protected virtual void UpdateLayoutSlotWidth(double newWidth)
Parameters:newWidthdouble
C#
protected virtual void UpdateLayoutSlotX(double newX)
Parameters:newXdouble
C#
protected virtual void UpdateLayoutSlotY(double newY)
Parameters:newYdouble

Events

Occurs when a value of some property has changed.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged