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.WebEdition.ContextMenu
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | Initializes a new instance of the ContextMenu class with no menu items specified. | ||
![]() | String, Int32 | Initializes a new instance of the ContextMenu class with the specified identifier and width. | |
![]() | 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 |
---|---|---|---|
![]() | Object | ||
![]() | Object |
Name | Return | DeclaringType | Summary |
---|---|---|---|
![]() | String | Gets or sets the CSS class of the context menu. | |
![]() | String | Gets the identifier of the ContextMenu object. | |
![]() | GeoKeyedCollection<ContextMenuItem> | Gets the menu item collection of the context menu. | |
![]() | 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