Class PopUpMenuItem
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
allows access to a pop up menu item
public class PopUpMenuItem
- Inheritance
-
PopUpMenuItem
- Inherited Members
Constructors
PopUpMenuItem(string, string, swDocumentTypes_e)
Adds a menu item to the pop-up menu
public PopUpMenuItem(string itemText, string hint, swDocumentTypes_e documentTypes)
Parameters
itemTextstringText for the item
hintstringText displayed in the SOLIDWORKS status bar when the user moves the cursor over this pop-up menu item
documentTypesswDocumentTypes_eDocument types for which this pop-up menu item is displayed as defined in SolidWorks.Interop.swconst.swDocumentTypes_e
Properties
DocumentType
document types that this item should appear in
public swDocumentTypes_e DocumentType { get; set; }
Property Value
- swDocumentTypes_e
Hint
text that appears on the status bar once user hovers over this menu item
public string Hint { get; set; }
Property Value
Id
id of this menu pop up item that's assigned to it once the item was created
public int Id { get; }
Property Value
ItemText
item text in the menu
public string ItemText { get; set; }
Property Value
Methods
UnsubscribeFromEvents()
Unsubscribes all events
public void UnsubscribeFromEvents()
Events
Pressed
Determines which item was selected when the user selects a pop-up menu item.
public event EventHandler<EventArgs> Pressed
Event Type
Updated
When Windows attempts to select or deselected and enable or disable the pop-up menu item, SOLIDWORKS calls this method to get the state of the menu item from the add-in.
public event EventHandler<int> Updated