SubMenuStyleCollection.OnInsert(Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called before the Add(SubMenuStyle) and Insert(Int32, SubMenuStyle) methods.
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)
Parameters
- index
- Int32
The zero-based index at which value
should be inserted.
- value
- Object
The object to insert into the SubMenuStyleCollection collection.
Exceptions
value
is not of type SubMenuStyle.
Remarks
The OnInsert method is called before the Add and Insert methods. You can override the OnInsert method in custom SubMenuStyleCollection classes to perform custom processing of SubMenuStyle objects before they are added to the SubMenuStyleCollection collection.
Applies to
See also
.NET