FindByTextCommand
Compares a supplied node's text with a non-empty string argument and returns the node when they match.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class FindByTextCommand : CommandBase, IImageListProvider
Inheritance: objectCommandBaseFindByTextCommand
Implements:
Constructors
public FindByTextCommand()
Methods
Determines whether the command can compare a tree node.
public override bool CanExecute(object parameter)
The candidate node.
Returns:true for a RadTreeNode; otherwise, the base command result.
Overrides:
Executes an exact comparison against the supplied node when the search text is non-empty.
public override object Execute(params object[] settings)
The first setting is the node; the second is an IList whose first item is the text to match.
Returns:The supplied node when its text matches the non-empty search text, or null otherwise.
Exceptions: ArgumentExceptionThe first setting can execute, but the supplied second setting is not a non-empty IList whose first item is a string.
Overrides: