ClassSparkElement
Definition
Namespace:Telerik.WinControls.UI.Sparkline
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class SparkElement : SparkNode, IDisposable, INotifyPropertyChanged
Inheritance: objectDisposableObjectPropertyBagObjectSparkNodeSparkElement
Derived Classes:
Implements:
Inherited Members
Constructors
SparkElement()
Initializes a new instance of the SparkElement class.
Declaration
protected SparkElement()
Properties
Presenter
Gets the ISparkElementPresenter instance where this element is presented.
Declaration
public override ISparkElementPresenter Presenter { get; }
Property Value
Overrides
Methods
DisposeManagedResources()
Disposes all managed resources allocated by this instance.
Declaration
protected override void DisposeManagedResources()
Overrides
EnumDescendants()
Provides flexible routine for traversing all descendants of this instance.
Declaration
public IEnumerable<SparkNode> EnumDescendants()
Returns
IEnumerable<SparkNode>
EnumDescendants(Predicate<SparkNode>, TreeTraversalMode)
Provides flexible routine for traversing all descendants of this instance that match the provided predicate.
Declaration
public IEnumerable<SparkNode> EnumDescendants(Predicate<SparkNode> predicate, TreeTraversalMode traverseMode)
Parameters
predicate
The predicate that defines the match criteria.
traverseMode
The mode used to traverse the subtree.
Returns
IEnumerable<SparkNode>
EnumDescendants(TreeTraversalMode)
Provides flexible routine for traversing all descendants of this instance.
Declaration
public IEnumerable<SparkNode> EnumDescendants(TreeTraversalMode traverseMode)
Parameters
traverseMode
The mode used to traverse the subtree.
Returns
IEnumerable<SparkNode>
FindAncestor<T>()
Searches up the parent chain and returns the first parent of type T.
Declaration
public T FindAncestor<T>() where T : SparkElement
Returns
T
FindDescendant(Predicate<SparkNode>)
Searches down the subtree of elements, using breadth-first approach, and returns the first descendant of type T.
FindDescendant<T>()
Searches down the subtree of elements, using breadth-first approach, and returns the first descendant of type T.
Declaration
public T FindDescendant<T>() where T : SparkNode
Returns
T
IsAncestorOf(SparkNode)
Gets a boolean value that determines whether a given element resides in the element hierarchy of this element.