ICommandBindingAddTarget(Object) Method

Adds the target to this ICommandBinding instance. The underlying ICommand will be invoked for each added target. If no targets are added the command will be invoked with a target.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
ICommandBinding AddTarget(
	Object target
)

Parameters

target  Object
The target of the command to add. If the command is a TargetedCommandTTarget or SourceAwareTargetedCommandTEventArgs, TTarget, then the type of target must match TTarget.

Return Value

ICommandBinding
This ICommandBinding instance to provide fluent initialization.

See Also