Dela via


RibbonTextBox.Command Property

Gets or sets the command that is associated with this control.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property Command As ICommand
public ICommand Command { get; set; }
public:
virtual property ICommand^ Command {
    ICommand^ get () sealed;
    void set (ICommand^ value) sealed;
}
abstract Command : ICommand with get, set
override Command : ICommand with get, set
final function get Command () : ICommand
final function set Command (value : ICommand)

Property Value

Type: System.Windows.Input.ICommand
The command that is associated with this control.

Implements

ICommandSource.Command

Dependency Property Information

Identifier field

CommandProperty

Metadata properties set to true

None

.NET Framework Security

See Also

Reference

RibbonTextBox Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Commanding Overview

How to: Hook Up a Command to a Control with Command Support