Table of Contents

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 int

ID of the command.

menuCaption string

Text that will appear in the menu.

flags int

Where the menu will appear.

callback string

Callback

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 int

ID of the command.

menuCaption string

Text that will appear in the menu.

flags int

Where the menu will appear.

statusBarHelp string

Help message that will appear in the status bar.

toolTip string

Help message that appear in the Windows tooltip.

toolButtonIndex int

Index of the command button.

toolbarImageID int

ID 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

int

ID

ID of the command.

public int ID { get; }

Property Value

int

MenuCaption

Text that will appear in the menu.

public string MenuCaption { get; }

Property Value

string

StatusBarHelp

Help message that will appear in the status bar.

public string StatusBarHelp { get; }

Property Value

string

ToolButtonIndex

Index of the command button.

public int ToolButtonIndex { get; }

Property Value

int

ToolbarImageID

ID of the toolbar image.

public int ToolbarImageID { get; }

Property Value

int

Tooltip

Help message that appear in the Windows tooltip

public string Tooltip { get; }

Property Value

string