Add.3 |
Scroll |
Creates a new TheMenu with the specified Text, ID and SelectionType and adds it as a sub item of the current menu.
Namespace: Therefore.API
Visual Basic Public Overridable Function Add ( _ strText As String , _ nID As Integer, _ nSelectionType As TheSelectionType _ ) C# public virtual void Add ( string strText, int nID, TheSelectionType nSelectionType )
ParametersstrText 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. |