共用方式為


CommandBindingCollection.Insert(Int32, CommandBinding) 方法

定義

將指定之 CommandBinding 插入位於指定索引的這個 CommandBindingCollection

public:
 void Insert(int index, System::Windows::Input::CommandBinding ^ commandBinding);
public void Insert (int index, System.Windows.Input.CommandBinding commandBinding);
member this.Insert : int * System.Windows.Input.CommandBinding -> unit
Public Sub Insert (index As Integer, commandBinding As CommandBinding)

參數

index
Int32

插入 commandBinding 處之以零起始的索引。

commandBinding
CommandBinding

要插入的繫結。

例外狀況

commandBindingnull

適用於