Class
SparkElement

Definition

Namespace:Telerik.WinControls.UI.Sparkline

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class SparkElement : SparkNode, IDisposable, INotifyPropertyChanged

Inheritance: objectDisposableObjectPropertyBagObjectSparkNodeSparkElement

Derived Classes: SparkAnnotationModelSparkAreaModelSparkAxisModelSparkPlotAreaModelSparkSeriesModel

Implements: IDisposableINotifyPropertyChanged

Inherited Members SparkNode.Arrange(RadRect, bool)SparkNode.Invalidate()SparkNode.UpdateLayoutSlotX(double)SparkNode.UpdateLayoutSlotY(double)SparkNode.UpdateLayoutSlotWidth(double)SparkNode.UpdateLayoutSlotHeight(double)SparkNode.SetValueCore(int, object)SparkNode.ClearValueCore(int)SparkNode.IsArrangeValidSparkNode.NodeStateSparkNode.IndexSparkNode.CollectionIndexSparkNode.IsTreeLoadedSparkNode.LayoutSlotSparkNode.SparkAreaSparkNode.ParentSparkNode.PropertyChangedPropertyBagObject.IsLocalValue(int)PropertyBagObject.GetValue(int)PropertyBagObject.SetValue(int, object)PropertyBagObject.ClearValue(int)PropertyBagObject.GetTypedValue<T>(int, T)PropertyBagObject.PropertyStoreDisposableObject.Dispose()DisposableObject.DisposeUnmanagedResources()DisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.EventsDisposableObject.DisposingDisposableObject.Disposed

Constructors

SparkElement()

Initializes a new instance of the SparkElement class.

Declaration

cs-api-definition
protected SparkElement()

Properties

Presenter

Gets the ISparkElementPresenter instance where this element is presented.

Declaration

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

Property Value

ISparkElementPresenter

Overrides SparkNode.Presenter

Methods

DisposeManagedResources()

Disposes all managed resources allocated by this instance.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides PropertyBagObject.DisposeManagedResources()

EnumDescendants()

Provides flexible routine for traversing all descendants of this instance.

Declaration

cs-api-definition
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

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

Parameters

predicate

Predicate<SparkNode>

The predicate that defines the match criteria.

traverseMode

TreeTraversalMode

The mode used to traverse the subtree.

Returns

IEnumerable<SparkNode>

EnumDescendants(TreeTraversalMode)

Provides flexible routine for traversing all descendants of this instance.

Declaration

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

Parameters

traverseMode

TreeTraversalMode

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

cs-api-definition
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.

Declaration

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

Parameters

criteria

Predicate<SparkNode>

Returns

SparkNode

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 : SparkNode

Returns

T

IsAncestorOf(SparkNode)

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(SparkNode node)

Parameters

node

SparkNode

An instance of the SparkNode class which is checked.

Returns

bool