ThumbButtonInfo.CommandTarget 属性

获取或设置要对其引发指定命令的元素。

命名空间:  Microsoft.Windows.Shell
程序集:  Microsoft.Windows.Shell(在 Microsoft.Windows.Shell.dll 中)

语法

声明
Public Property CommandTarget As IInputElement
    Get
    Set
public IInputElement CommandTarget { get; set; }
public:
virtual property IInputElement^ CommandTarget {
    IInputElement^ get () sealed;
    void set (IInputElement^ value) sealed;
}
abstract CommandTarget : IInputElement with get, set
override CommandTarget : IInputElement with get, set
final function get CommandTarget () : IInputElement
final function set CommandTarget (value : IInputElement)

属性值

类型:System.Windows.IInputElement
在其上引发指定命令的元素。默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。

实现

ICommandSource.CommandTarget

备注

CommandTarget 属性提供了对已在应用程序中定义的元素的引用。

.NET Framework 安全性

请参见

参考

ThumbButtonInfo 类

Microsoft.Windows.Shell 命名空间

CommandTarget

其他资源

命令概述