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

Changes a node's checked state using the command's Boolean or list argument form.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class SetCheckBoxCommand : CommandBase, IImageListProvider

Inheritance: objectCommandBaseSetCheckBoxCommand

Implements: IImageListProvider

Constructors

C#
public SetCheckBoxCommand()

Methods

Determines whether the command can update a tree node's checked state.

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)

Applies a checked state to the supplied node.

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

The first setting is the node. The second is either a Boolean whose inverse is assigned or an IList whose first Boolean is assigned directly.

Returns:

object

true when the node's checked state was processed; otherwise, false.

Overrides: CommandBase.Execute(params object[])