Insert.3 |
Scroll |
Creates a new TheMenu with the specified Text, ID and SelectionType and inserts it at the specified position in the current menu.
Namespace: Therefore.API
Visual Basic Public Overridable Function Insert ( _ nIndex As Integer, _ strText As String , _ nID As Integer, _ nSelectionType As TheSelectionType _ ) C# public virtual void Insert ( int nIndex, string strText, int nID, TheSelectionType nSelectionType )
ParametersnIndex Zero-based index at which to insert the menu. strText Menu text. nID Menu ID. nSelectionType
Return ValueNone. |
Adding Nothing If Nothing (VB), null (C#) or their equivalent in another language is used as parameter for this method, the method call is ignored. No null-entry is added to the list, the size remains the same and no exception is thrown. |