New to Telerik UI for WinForms? Start a free 30-day trial

Deselects the supplied node when it belongs to a tree view and is currently selected.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class DeselectChildNodesCommand : CommandBase, IImageListProvider

Inheritance: objectCommandBaseDeselectChildNodesCommand

Implements: IImageListProvider

Constructors

C#
public DeselectChildNodesCommand()

Methods

Determines whether the command accepts a tree node.

C#
public override bool CanExecute(object parameter)
Parameters:parameterobject

The candidate node.

Returns:

bool

true for a RadTreeNode; otherwise, the base command result.

Overrides: CommandBase.CanExecute(object)

Deselects the supplied node without traversing its descendants.

C#
public override object Execute(params object[] settings)
Parameters:settingsobject[]

The first setting is the node to deselect.

Returns:

object

The node when it was deselected, or the base command result otherwise.

Overrides: CommandBase.Execute(params object[])