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

Base class for nodes that may have chidren.

Definition

Constructors

Initializes a new instance of the ChartElement class.

C#
protected ChartElement()

Properties

Gets the IChartElementPresenter instance where this element is presented.

C#
public override IChartElementPresenter Presenter { get; }

Overrides: ChartNode.Presenter

Methods

Disposes all managed resources allocated by this instance.

C#
protected override void DisposeManagedResources()

Overrides: PropertyBagObject.DisposeManagedResources()

Provides flexible routine for traversing all descendants of this instance.

C#
public IEnumerable<ChartNode> EnumDescendants()
Returns:

IEnumerable<ChartNode>

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

C#
public IEnumerable<ChartNode> EnumDescendants(Predicate<ChartNode> predicate, TreeTraversalMode traverseMode)
Parameters:predicatePredicate<ChartNode>

The predicate that defines the match criteria.

traverseModeTreeTraversalMode

The mode used to traverse the subtree.

Returns:

IEnumerable<ChartNode>

Provides flexible routine for traversing all descendants of this instance.

C#
public IEnumerable<ChartNode> EnumDescendants(TreeTraversalMode traverseMode)
Parameters:traverseModeTreeTraversalMode

The mode used to traverse the subtree.

Returns:

IEnumerable<ChartNode>

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

C#
public T FindAncestor<T>() where T : ChartElement
Returns:

T

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

C#
public ChartNode FindDescendant(Predicate<ChartNode> criteria)
Parameters:criteriaPredicate<ChartNode>Returns:

ChartNode

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

C#
public T FindDescendant<T>() where T : ChartNode
Returns:

T

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

C#
public bool IsAncestorOf(ChartNode node)
Parameters:nodeChartNode

An instance of the ChartNode class which is checked.

Returns:

bool