Products
Professional Services
Demos and Downloads
Help and Support
Products
Professional Services
Demos and Downloads
Help and Support
This is an old revision of the document!
<!– Class –> This class represents a right-click shortcut menu used in the map control.
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 <strong>CssClass</strong> property to customize the appearance of the context menu. The <strong>MenuItems</strong> property holds the items in the context menu.You can set the <strong>Width</strong> of the context menu, and the height of the context menu will be automatically ajusted to fit all of the menu's items.
*System.Object **ThinkGeo.MapSuite.WebEdition.ContextMenu
| Name | Parameters | DeclaringType | Summary |
|---|---|---|---|
ContextMenu | Initializes a new instance of the ContextMenu class with no menu items specified. | ||
ContextMenu | String, Int32 | Initializes a new instance of the ContextMenu class with the specified identifier and width. | |
ContextMenu | String, Int32, String | Initializes a new instance of the ContextMenu class with the identifier, width and CSS class string. |
| Name | Parameters | DeclaringType | Summary |
|---|
| Name | Parameters | DeclaringType | Summary |
|---|---|---|---|
Finalize | Object | ||
MemberwiseClone | Object |
| Name | Return | DeclaringType | Summary |
|---|---|---|---|
CssClass | String | Gets or sets the CSS class of the context menu. | |
Id | String | Gets the identifier of the ContextMenu object. | |
MenuItems | GeoKeyedCollection<ContextMenuItem> | Gets the menu item collection of the context menu. | |
Width | Int32 | Gets or sets the width of the context menu. |
| Name | Return | DeclaringType | Summary |
|---|
| Name | Event Arguments | DeclaringType | Summary |
|---|
Initializes a new instance of the ContextMenu class with no menu items specified.
Initializes a new instance of the ContextMenu class.
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ContextMenu.28.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ContextMenu.28.29</a>
| Name | Type | Description |
|---|
Initializes a new instance of the ContextMenu class with the specified identifier and width.
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ContextMenu.28String.2C_Int32.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ContextMenu.28String.2C_Int32.29</a>
| 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. |
Initializes a new instance of the ContextMenu class with the identifier, width and CSS class string.
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ContextMenu.28String.2C_Int32.2C_String.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ContextMenu.28String.2C_Int32.2C_String.29</a>
| 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. |
Creates a deep copy of this ContextMenu object.
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#CloneDeep.28.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#CloneDeep.28.29</a>
| Return Type | Description |
|---|---|
| ContextMenu<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> | A deep copy of the ContextMenu object. |
| Name | Type | Description |
|---|
<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#Equals.28Object.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#Equals.28Object.29</a>
| Return Type | Description |
|---|---|
| Boolean<!– System.Boolean –> |
| Name | Type | Description |
|---|---|---|
| obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#GetHashCode.28.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#GetHashCode.28.29</a>
| Return Type | Description |
|---|---|
| Int32<!– System.Int32 –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#GetType.28.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#GetType.28.29</a>
| Return Type | Description |
|---|---|
| Type<!– System.Type –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
Returns a JSON string that contains information for creating the context menu at the client side.
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ToJson.28.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ToJson.28.29</a>
| Return Type | Description |
|---|---|
| String<!– System.String –> | A string for creating the context menu at the client side. |
| Name | Type | Description |
|---|
<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ToString.28.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#ToString.28.29</a>
| Return Type | Description |
|---|---|
| String<!– System.String –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#Finalize.28.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#Finalize.28.29</a>
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#MemberwiseClone.28.29” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#MemberwiseClone.28.29</a>
| Return Type | Description |
|---|---|
| Object<!– System.Object –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
Gets or sets the CSS class of the context menu.
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#CssClass” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#CssClass</a>
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back
Gets the identifier of the ContextMenu object.
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 Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back
Gets the menu item collection of the context menu.
For the most updated Info for this topic, please check it here:<a href=“http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#MenuItems” target=“_blank”>http://wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.WebEdition.ContextMenu#MenuItems</a>
| Return Type |
|---|
| GeoKeyedCollection<ContextMenuItem><!– ThinkGeo.MapSuite.WebEdition.GeoKeyedCollection{ThinkGeo.MapSuite.WebEdition.ContextMenuItem} –> |
<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back
Gets or sets the width of the context menu.
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 Type |
|---|
| Int32<!– System.Int32 –> |
<!– ThinkGeo.MapSuite.WebEdition.ContextMenu –> Go Back
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.