Share via


IArrayItemCommand.DefaultActionPriority Property

Definition

Double-clicking or pressing Enter on an array item will invoke the enabled command with the lowest DefaultActionPriority that is >= 0. For example, if you proffer "Run" and "Edit" array item commands, and you want double-clicking to invoke the Run command for items that enable it, but otherwise invoke the Edit command, you could define Run to have DefaultActionPriority 0 and Edit to have DefaultActionPriority 1. Return -1 for commands that should never be default-invokable.

Note that if built-in actions like "Edit" are present, they may take priority over custom actions. (Built-in actions can be hidden via registration.)

public int DefaultActionPriority { get; }
member this.DefaultActionPriority : int
Public ReadOnly Property DefaultActionPriority As Integer

Property Value

Applies to