Table of Contents

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

itemText string

Text for the item

hint string

Text displayed in the SOLIDWORKS status bar when the user moves the cursor over this pop-up menu item

documentTypes swDocumentTypes_e

Document 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

string

Id

id of this menu pop up item that's assigned to it once the item was created

public int Id { get; }

Property Value

int

ItemText

item text in the menu

public string ItemText { get; set; }

Property Value

string

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

EventHandler<EventArgs>

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

Event Type

EventHandler<int>