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
ID
intID of the command.
menuCaption
stringText that will appear in the menu.
flags
intWhere the menu will appear.
callback
stringCallback
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
ID
intID of the command.
menuCaption
stringText that will appear in the menu.
flags
intWhere the menu will appear.
statusBarHelp
stringHelp message that will appear in the status bar.
toolTip
stringHelp message that appear in the Windows tooltip.
toolButtonIndex
intIndex of the command button.
toolbarImageID
intID 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; }