Class SparkElement
Inherited Members
Namespace: Telerik.WinControls.UI.Sparkline
Assembly: Telerik.WinControls.UI.dll
Syntax
public class SparkElement : SparkNode, IDisposable, INotifyPropertyChanged
Constructors
SparkElement()
Properties
Presenter
Gets the ISparkElementPresenter instance where this element is presented.
Declaration
public override ISparkElementPresenter Presenter { get; }
Property Value
|
ISparkElementPresenter
|
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
|
System.Collections.Generic.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
|
System.Predicate<SparkNode>
predicate
The predicate that defines the match criteria. |
|
TreeTraversalMode
traverseMode
The mode used to traverse the subtree. |
Returns
|
System.Collections.Generic.IEnumerable<SparkNode>
|
EnumDescendants(TreeTraversalMode)
Provides flexible routine for traversing all descendants of this instance.
Declaration
public IEnumerable<SparkNode> EnumDescendants(TreeTraversalMode traverseMode)
Parameters
|
TreeTraversalMode
traverseMode
The mode used to traverse the subtree. |
Returns
|
System.Collections.Generic.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
|
Type Parameters
|
T
Must be a SparkElement. |
FindDescendant(Predicate<SparkNode>)
Searches down the subtree of elements, using breadth-first approach, and returns the first descendant of type T.
Declaration
public SparkNode FindDescendant(Predicate<SparkNode> criteria)
Parameters
|
System.Predicate<SparkNode>
criteria
|
Returns
|
SparkNode
|
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
|
Type Parameters
|
T
Must be a SparkNode. |
IsAncestorOf(SparkNode)
Gets a boolean value that determines whether a given element resides in the element hierarchy of this element.
Declaration
public bool IsAncestorOf(SparkNode node)
Parameters
|
SparkNode
node
An instance of the SparkNode class which is checked. |
Returns
|
System.Boolean
|