Called before the Add and Insert methods.
protected override void OnInsert(
The zero-based index at which value should be inserted.
The object to insert into the SubMenuStyleCollection collection.
value is not of type SubMenuStyle.
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.