SubMenuStyleCollection.OnInsert(Int32, Object) 메서드

정의

Add(SubMenuStyle) 메서드 앞에 Insert(Int32, SubMenuStyle) 호출됩니다.

protected:
 override void OnInsert(int index, System::Object ^ value);
protected override void OnInsert(int index, object value);
override this.OnInsert : int * obj -> unit
Protected Overrides Sub OnInsert (index As Integer, value As Object)

매개 변수

index
Int32

삽입해야 하는 value 인덱스(0부터 시작)입니다.

value
Object

컬렉션에 삽입할 개체입니다 SubMenuStyleCollection .

예외

value 가 형식 SubMenuStyle이 아닙니다.

설명

메서드와 OnInsert 메서드 앞에 메서드가 AddInsert 호출됩니다. 컬렉션에 OnInsert 추가 SubMenuStyleCollection 되기 전에 사용자 지정 SubMenuStyle 클래스의 메서드를 재정의하여 개체의 SubMenuStyleCollection 사용자 지정 처리를 수행할 수 있습니다.

적용 대상

추가 정보