Class
ChartElement

Base class for nodes that may have children.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

cs-api-definition
public abstract class ChartElement : ChartNode, INotifyPropertyChanged

Inheritance: objectPropertyBagObjectChartNodeChartElement

Implements: INotifyPropertyChanged

Inherited Members ChartNode.Arrange(RadRect, bool)ChartNode.Invalidate()ChartNode.IsArrangeValidChartNode.NodeStateChartNode.IndexChartNode.CollectionIndexChartNode.IsTreeLoadedChartNode.LayoutSlotChartNode.ParentChartNode.PropertyChanged

Constructors

ChartElement()

Initializes a new instance of the ChartElement class.

Declaration

cs-api-definition
protected ChartElement()

Properties

Presenter

Gets the IChartElementPresenter instance where this element is presented.

Declaration

cs-api-definition
public override IChartElementPresenter Presenter { get; }

Property Value

IChartElementPresenter

Overrides ChartNode.Presenter

Methods

EnumDescendants()

Provides flexible routine for traversing all descendants of this instance.

Declaration

cs-api-definition
public IEnumerable<ChartNode> EnumDescendants()

Returns

IEnumerable<ChartNode>

EnumDescendants(Predicate<ChartNode>, TreeTraversalMode)

Provides flexible routine for traversing all descendants of this instance that match the provided predicate.

Declaration

cs-api-definition
public IEnumerable<ChartNode> EnumDescendants(Predicate<ChartNode> predicate, TreeTraversalMode traverseMode)

Parameters

predicate

Predicate<ChartNode>

The predicate that defines the match criteria.

traverseMode

TreeTraversalMode

The mode used to traverse the subtree.

Returns

IEnumerable<ChartNode>

EnumDescendants(TreeTraversalMode)

Provides flexible routine for traversing all descendants of this instance.

Declaration

cs-api-definition
public IEnumerable<ChartNode> EnumDescendants(TreeTraversalMode traverseMode)

Parameters

traverseMode

TreeTraversalMode

The mode used to traverse the subtree.

Returns

IEnumerable<ChartNode>

FindAncestor<T>()

Searches up the parent chain and returns the first parent of type T.

Declaration

cs-api-definition
public T FindAncestor<T>() where T : ChartElement

Returns

T

FindDescendant(Predicate<ChartNode>)

Searches down the subtree of elements, using breadth-first approach, and returns the first descendant of type T.

Declaration

cs-api-definition
public ChartNode FindDescendant(Predicate<ChartNode> criteria)

Parameters

criteria

Predicate<ChartNode>

Returns

ChartNode

FindDescendant<T>()

Searches down the subtree of elements, using breadth-first approach, and returns the first descendant of type T.

Declaration

cs-api-definition
public T FindDescendant<T>() where T : ChartNode

Returns

T

IsAncestorOf(ChartNode)

Gets a boolean value that determines whether a given element resides in the element hierarchy of this element.

Declaration

cs-api-definition
public bool IsAncestorOf(ChartNode node)

Parameters

node

ChartNode

An instance of the ChartNode class which is checked.

Returns

bool