ListControl.OnSelectedIndexChanged(EventArgs) ListControl.OnSelectedIndexChanged(EventArgs) ListControl.OnSelectedIndexChanged(EventArgs) ListControl.OnSelectedIndexChanged(EventArgs) Method

定义

引发 SelectedValueChanged 事件。Raises the SelectedValueChanged event.

protected:
 virtual void OnSelectedIndexChanged(EventArgs ^ e);
protected virtual void OnSelectedIndexChanged (EventArgs e);
abstract member OnSelectedIndexChanged : EventArgs -> unit
override this.OnSelectedIndexChanged : EventArgs -> unit
Protected Overridable Sub OnSelectedIndexChanged (e As EventArgs)

参数

e
EventArgs EventArgs EventArgs EventArgs

包含事件数据的 EventArgsAn EventArgs that contains the event data.

注解

有关处理事件的详细信息,请参阅处理和引发事件For more information about handling events, see Handling and Raising Events.

继承者说明

在派生类中重写 OnSelectedIndexChanged(EventArgs) 时,一定要调用基类的 OnSelectedIndexChanged(EventArgs) 方法,以便已注册的委托对事件进行接收。When overriding OnSelectedIndexChanged(EventArgs) in a derived class, be sure to call the base class's OnSelectedIndexChanged(EventArgs) method so that registered delegates receive the event.

适用于