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

Definition

Constructors

Initializes a new instance of the SparkElement class.

C#
protected SparkElement()

Properties

Gets the ISparkElementPresenter instance where this element is presented.

C#
public override ISparkElementPresenter Presenter { get; }

Overrides: SparkNode.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<SparkNode> EnumDescendants()
Returns:

IEnumerable<SparkNode>

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

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

The predicate that defines the match criteria.

traverseModeTreeTraversalMode

The mode used to traverse the subtree.

Returns:

IEnumerable<SparkNode>

Provides flexible routine for traversing all descendants of this instance.

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

The mode used to traverse the subtree.

Returns:

IEnumerable<SparkNode>

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

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

T

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

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

SparkNode

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

T

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

C#
public bool IsAncestorOf(SparkNode node)
Parameters:nodeSparkNode

An instance of the SparkNode class which is checked.

Returns:

bool