ComponentCommands 類別

定義

提供標準的元件相關命令集,其含有預先定義的按鍵輸入動作和 Text 屬性。Provides a standard set of component-related commands, which have predefined key input gestures and Text properties.

public ref class ComponentCommands abstract sealed
public static class ComponentCommands
type ComponentCommands = class
Public Class ComponentCommands
繼承
ComponentCommands

備註

ComponentCommands類別中的命令和其他命令程式庫類別 ( ApplicationCommands例如和NavigationCommands) 中的命令, 主要是用來代表應用程式設計人員經常遇到的一組常見命令。The commands in the ComponentCommands class and commands in the other command library classes, such as ApplicationCommands and NavigationCommands, are intended to represent a set of common commands that application programmers encounter frequently. 命令只代表的實例RoutedCommand , 而不是命令的執行邏輯。The commands only represent the instance of the RoutedCommand and not the implementation logic for the command. 執行邏輯會透過系結至命令CommandBindingsThe implementation logic is bound to the command via a CommandBindings. 例如, 如果MoveLeft命令是在控制項上執行 (命令目標), 則命令目標可能不會提供MoveLeft執行命令的邏輯, 因此應用程式寫入器會負責撰寫邏輯來決定如何命令目標會處理命令。For example, if the MoveLeft command is executed on a control (the command target), the logic that performs the MoveLeft command may not be provided by the command target, so the application writer is responsible for writing the logic that determines how the command target handles the command.

不過, 許多控制項都可以針對命令程式庫中的許多命令提供實作為邏輯。Many controls do provide implementation logic, though, for many of the commands in the command library. 例如, TextBox類別會提供Copy Cut Paste命令、命令、命令Undo 、命令和Redo命令的邏輯。For example, the TextBox class provides logic for the Paste command, Cut command, Copy command, Undo command, and Redo command. 如需詳細資訊, 請參閱特定控制項類別的類別檔。See the class documentation for particular control classes for more information.

如需命令和命令的詳細資訊, 請參閱命令總覽For more information on commands and commanding, see Commanding Overview.

屬性

ExtendSelectionDown

取得表示向下延伸選取範圍命令的值。Gets the value that represents the Extend Selection Down command.

ExtendSelectionLeft

取得表示 Extend Selection Left 命令的值。Gets the value that represents the Extend Selection Left command.

ExtendSelectionRight

取得表示 Extend Selection Right 命令的值。Gets the value that represents the Extend Selection Right command.

ExtendSelectionUp

取得代表 Extend Selection Up 命令的值。Gets the value that represents the Extend Selection Up command.

MoveDown

取得表示 Move Down 命令的值。Gets the value that represents the Move Down command.

MoveFocusBack

取得代表 Move Focus Back 命令的值。Gets the value that represents the Move Focus Back command.

MoveFocusDown

取得表示 Move Focus Down 命令的值。Gets the value that represents the Move Focus Down command.

MoveFocusForward

取得代表 Move Focus Forward 命令的值。Gets the value that represents the Move Focus Forward command.

MoveFocusPageDown

取得代表 Move Focus Page Down 命令的值。Gets the value that represents the Move Focus Page Down command.

MoveFocusPageUp

取得代表 Move Focus Page Up 命令的值。Gets the value that represents the Move Focus Page Up command.

MoveFocusUp

取得代表 Move Focus Up 命令的值。Gets the value that represents the Move Focus Up command.

MoveLeft

取得代表 Move Left 命令的值。Gets the value that represents the Move Left command.

MoveRight

取得代表右移命令的值。Gets the value that represents the Move Right command.

MoveToEnd

取得代表 Move To End 命令的值。Gets the value that represents the Move To End command.

MoveToHome

取得表示 Move To Home 命令的值。Gets the value that represents the Move To Home command.

MoveToPageDown

取得表示 Move To Page Down 命令的值。Gets the value that represents the Move To Page Down command.

MoveToPageUp

取得代表 Move To Page Up 命令的值。Gets the value that represents the Move To Page Up command.

MoveUp

取得表示 Move Up 命令的值。Gets the value that represents the Move Up command.

ScrollByLine

取得表示 Scroll By Line 命令的值。Gets the value that represents the Scroll By Line command.

ScrollPageDown

取得表示 Scroll Page Down 命令的值。Gets the value that represents the Scroll Page Down command.

ScrollPageLeft

取得代表 Scroll Page Left 命令的值。Gets the value that represents the Scroll Page Left command.

ScrollPageRight

取得表示 Scroll Page Right 命令的值。Gets the value that represents the Scroll Page Right command.

ScrollPageUp

取得表示 Scroll Page Up 命令的值。Gets the value that represents the Scroll Page Up command.

SelectToEnd

取得代表 Select To End 命令的值。Gets the value that represents the Select To End command.

SelectToHome

取得代表 Select To Home 命令的值。Gets the value that represents the Select To Home command.

SelectToPageDown

取得表示選取下一頁命令的值。Gets the value that represents the Select To Page Down command.

SelectToPageUp

取得代表 Select To Page Up 命令的值。Gets the value that represents the Select To Page Up command.

適用於

另請參閱