NShape Reference
MenuItemDef Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
MenuItemDef Class

Previous pageReturn to chapter overviewNext page

Represents a possible action.

Syntax

public abstract class MenuItemDef

Description

A MenuItemDef is used to define a button, toolbar button or menu item that is linked to diagramming actions.

Public Properties

Name

Description

Checked

Indicates whether the action should be displayed as checked.

Description

Defines the culture depending description of the action that can be used for tool tips.

Image

Indicates an image that represents the action.

ImageTransparentColor

Indicates the image color that is to be regarded as transparent.

IsFeasible

Indicates whether the action is currently possible.

Name

Defines the culture invariant name of the action.

SubItems

If the action is an action group, this property lists the group members.

Tag

Holds user defines data.

Title

Defines the culture depending title of the action.

Public Methods

Name

Description

Constructor

Constructs a new MenuItemDef instance.

Execute

Executes the action.

IsGranted

Checks whether the action is allowed.

Derived Classes

Derived classes are:

CommandMenuItemDef

DelegateMenuItemDef

GroupMenuItemDef

NotImplementedMenuItemDef

SeperatorMenuItemDef

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape