User Tools

Site Tools


thinkgeo.mapsuite.webedition.contextmenu

This is an old revision of the document!


ThinkGeo.MapSuite.WebEdition.ContextMenu

<!– Class –> This class represents a right-click shortcut menu used in the map control.

Remarks

The ContextMenu class represents a right-click shortcut menu which displays when a user right-clicks on a map or an element of a map. Shortcut menus are typically used to combine different menu items that are useful for the user, given the context of the application.Use the &lt;strong&gt;CssClass&lt;/strong&gt; property to customize the appearance of the context menu. The &lt;strong&gt;MenuItems&lt;/strong&gt; property holds the items in the context menu.You can set the &lt;strong&gt;Width&lt;/strong&gt; of the context menu, and the height of the context menu will be automatically ajusted to fit all of the menu's items.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodContextMenu Initializes a new instance of the ContextMenu class with no menu items specified.
Public MethodContextMenu String, Int32 Initializes a new instance of the ContextMenu class with the specified identifier and width.
Public MethodContextMenu String, Int32, String Initializes a new instance of the ContextMenu class with the identifier, width and CSS class string.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodCloneDeep Creates a deep copy of this ContextMenu object.
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToJson Returns a JSON string that contains information for creating the context menu at the client side.
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary
Public PropertyCssClass String Gets or sets the CSS class of the context menu.
Public PropertyId String Gets the identifier of the ContextMenu object.
Public PropertyMenuItems GeoKeyedCollection<ContextMenuItem> Gets the menu item collection of the context menu.
Public PropertyWidth Int32 Gets or sets the width of the context menu.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

ContextMenu()

Initializes a new instance of the ContextMenu class with no menu items specified.

Overloads

Initializes a new instance of the ContextMenu class.

Remarks

Parameters

Name Type Description

Go Back

ContextMenu(String, Int32)

Initializes a new instance of the ContextMenu class with the specified identifier and width.

Remarks

Parameters

Name Type Description
id String<!– System.String –> The key of the context menu in string format.
width Int32<!– System.Int32 –> The width of the context menu.

Go Back

ContextMenu(String, Int32, String)

Initializes a new instance of the ContextMenu class with the identifier, width and CSS class string.

Remarks

Parameters

Name Type Description
id String<!– System.String –> The key of the context menu in string format.
width Int32<!– System.Int32 –> The width of the context menu.
cssClass String<!– System.String –> The CSS class for the context menu.

Go Back

Protected Constructors

Public Methods

CloneDeep()

Creates a deep copy of this ContextMenu object.

Remarks

Return Value

Return Type Description
ContextMenu<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> A deep copy of the ContextMenu object.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back

Equals(Object)

Remarks

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Remarks

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Remarks

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToJson()

Returns a JSON string that contains information for creating the context menu at the client side.

Remarks

Return Value

Return Type Description
String<!– System.String –> A string for creating the context menu at the client side.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back

ToString()

Remarks

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

Finalize()

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Remarks

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

CssClass

Gets or sets the CSS class of the context menu.

Remarks

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back

Id

Gets the identifier of the ContextMenu object.

Remarks

For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#Id” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#Id</a>

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back

Gets the menu item collection of the context menu.

Remarks

Return Value

Return Type
GeoKeyedCollection<ContextMenuItem><!– ThinkGeo.MapSuite.WebEdition.GeoKeyedCollection{ThinkGeo.MapSuite.WebEdition.ContextMenuItem} –>

<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back

Width

Gets or sets the width of the context menu.

Remarks

For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#Width” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#Width</a>

Return Value

Return Type
Int32<!– System.Int32 –>

<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.webedition.contextmenu.1440040135.txt.gz · Last modified: 2015/09/18 03:07 (external edit)