SubMenuStyleCollection.OnInsert(Int32, Object) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
및 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 사용자 지정 처리를 수행할 수 있습니다.