ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
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.MvcEdition.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 |
|---|---|---|---|
CloneDeep | Creates a deep copy of this ContextMenu object. | ||
Equals | Object | Object | |
FromJson | String | Load this object from a json string. | |
GetHashCode | Object | ||
GetType | Object | ||
ToJson | Returns a JSON string that contains information for creating the context menu at the client side. | ||
ToString | Object |
| 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.
| Name | Type | Description |
|---|
Initializes a new instance of the ContextMenu class with the specified identifier and width.
| 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.
| 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.
| Return Type | Description |
|---|---|
| ContextMenu<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> | A deep copy of the ContextMenu object. |
| Name | Type | Description |
|---|
<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> Go Back
| Return Type | Description |
|---|---|
| Boolean<!– System.Boolean –> |
| Name | Type | Description |
|---|---|---|
| obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
Load this object from a json string.
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|---|---|
| jsonString | String<!– System.String –> | a json string |
<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> Go Back
| Return Type | Description |
|---|---|
| Int32<!– System.Int32 –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
| 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.
| Return Type | Description |
|---|---|
| String<!– System.String –> | A string for creating the context menu at the client side. |
| Name | Type | Description |
|---|
<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> Go Back
| Return Type | Description |
|---|---|
| String<!– System.String –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
| Return Type | Description |
|---|---|
| Void<!– System.Void –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
| Return Type | Description |
|---|---|
| Object<!– System.Object –> |
| Name | Type | Description |
|---|
<!– System.Object –> Go Back
Gets or sets the CSS class of the context menu.
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> Go Back
Gets the identifier of the ContextMenu object.
| Return Type |
|---|
| String<!– System.String –> |
<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> Go Back
Gets the menu item collection of the context menu.
| Return Type |
|---|
| GeoKeyedCollection<ContextMenuItem><!– ThinkGeo.MapSuite.MvcEdition.GeoKeyedCollection{ThinkGeo.MapSuite.MvcEdition.ContextMenuItem} –> |
<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> Go Back
Gets or sets the width of the context menu.
| Return Type |
|---|
| Int32<!– System.Int32 –> |
<!– ThinkGeo.MapSuite.MvcEdition.ContextMenu –> Go Back