ChartElement
Base class for nodes that may have chidren.
Definition
Namespace:Telerik.Charting
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public abstract class ChartElement : ChartNode, IDisposable, INotifyPropertyChanged
Inheritance: objectDisposableObjectPropertyBagObjectChartNodeChartElement
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChartElement class.
protected ChartElement()
Properties
Gets the IChartElementPresenter instance where this element is presented.
public override IChartElementPresenter Presenter { get; }
Overrides:
Methods
Disposes all managed resources allocated by this instance.
protected override void DisposeManagedResources()
Overrides:
Provides flexible routine for traversing all descendants of this instance.
Provides flexible routine for traversing all descendants of this instance that match the provided predicate.
public IEnumerable<ChartNode> EnumDescendants(Predicate<ChartNode> predicate, TreeTraversalMode traverseMode)
The predicate that defines the match criteria.
traverseModeTreeTraversalModeThe mode used to traverse the subtree.
Returns:IEnumerable<ChartNode>
Provides flexible routine for traversing all descendants of this instance.
public IEnumerable<ChartNode> EnumDescendants(TreeTraversalMode traverseMode)
The mode used to traverse the subtree.
Returns:IEnumerable<ChartNode>
Searches up the parent chain and returns the first parent of type T.
public T FindAncestor<T>() where T : ChartElement
T
Searches down the subtree of elements, using breadth-first approach, and returns the first descendant of type T.
public T FindDescendant<T>() where T : ChartNode
T