NShape Reference
Shape.GetMenuItemDefs Method

<< Click to Display Table of Contents >>

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

NShape Reference
Shape.GetMenuItemDefs Method

Previous pageReturn to chapter overviewNext page

Retrieves the list of actions of the shape.

Syntax

public abstract IEnumerable<MenuItemDef> GetMenuItemDefs(
    int x, int y, int range
)

Description

Actions describe a possible command for the shape. They are usually displayed as context menus in the user interface and create and execute a Command object when selected. The actions of a shape might depend on a position (for example of the mouse pointer). For instance, when clicking on a line segment, inserting an additional vertex is an option. When clicking outside the line, this action does not make sense.

Parameters

Name

Description

x

X coordinate of the clicked position.

y

Y coordinate of the clicked position.

range

Range within which nearby control points are taken into account when determine the possible actions.

Return Value

Enumerator of the actions.

Exceptions

None