Class MenuAttribute
- Namespace
- BlueByte.SOLIDWORKS.PDMProfessional.SDK.Attributes
- Assembly
- BlueByte.SOLIDWORKS.PDMProfessional.SDK.dll
Add command menu attribute.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class MenuAttribute : Attribute, _Attribute
- Inheritance
-
MenuAttribute
- Implements
- Inherited Members
Constructors
MenuAttribute(int, string, int, string)
Creates a command menu.
public MenuAttribute(int ID, string menuCaption, int flags = 0, string callback = "")
Parameters
IDintID of the command.
menuCaptionstringText that will appear in the menu.
flagsintWhere the menu will appear.
callbackstringCallback
MenuAttribute(int, string, int, string, string, int, int)
Creates a command menu.
public MenuAttribute(int ID, string menuCaption, int flags = 0, string statusBarHelp = "", string toolTip = "", int toolButtonIndex = -1, int toolbarImageID = 0)
Parameters
IDintID of the command.
menuCaptionstringText that will appear in the menu.
flagsintWhere the menu will appear.
statusBarHelpstringHelp message that will appear in the status bar.
toolTipstringHelp message that appear in the Windows tooltip.
toolButtonIndexintIndex of the command button.
toolbarImageIDintID of the toolbar image.
Properties
Callback
Gets or sets the callback.
public string Callback { get; set; }
Property Value
- string
The callback.
Remarks
This is not implemented yet.
Flags
Where the menu will appear. This is a combination of EPDM.Interop.epdm.EdmMenuFlags
public int Flags { get; }
Property Value
ID
ID of the command.
public int ID { get; }
Property Value
MenuCaption
Text that will appear in the menu.
public string MenuCaption { get; }
Property Value
StatusBarHelp
Help message that will appear in the status bar.
public string StatusBarHelp { get; }
Property Value
ToolButtonIndex
Index of the command button.
public int ToolButtonIndex { get; }
Property Value
ToolbarImageID
ID of the toolbar image.
public int ToolbarImageID { get; }
Property Value
Tooltip
Help message that appear in the Windows tooltip
public string Tooltip { get; }