User Tools

Site Tools


thinkgeo.mapsuite.webedition.contextmenuitem

This is an old revision of the document!


ThinkGeo.MapSuite.WebEdition.ContextMenuItem

<!– Class –> This class represents a menu item of the ContextMenu control.

Remarks

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

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodContextMenuItem Initializes a new instance of the ContextMenuitem. class.
Public MethodContextMenuItem String Initializes a new instance of the ContextMenuitem. class with the innerHtml specified.
Public MethodContextMenuItem String, String Initializes a new instance of the ContextMenuitem. class with the innerHtml and CSS class string specified.
Public MethodContextMenuItem String, String, String Initializes a new instance of the ContextMenuitem. class with innerHtml, CSS class and hover CSS class specified.
Public MethodContextMenuItem String, String, String, String Initializes a new instance of the ContextMenuitem. class with innerHtml, CSS class and hover CSS class specified.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodToJson Returns a JSON string that has information for creating the context menu item at the client side.
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object
Protected MethodOnClick ContextMenuItemClickEventArgs Raises the Click event of the ContextMenuItem object.

Public Properties

Name Return DeclaringType Summary
Public PropertyCssClass String Gets or sets the Cascading Style Sheet (CSS) class name string that affects the appearance of the context menu item.
Public PropertyHoverCssClass String Gets or sets the Cascading Style Sheet (CSS) class name string that applies when the mouse hovers over the menu item.
Public PropertyId String Gets the identifier of the context menu item.
Public PropertyInnerHtml String Gets or sets the content HTML of the context menu item.
Public PropertyMenuItems GeoKeyedCollection<ContextMenuItem> Gets the menu item collection of the context menu item.
Public PropertyOnClientClick String Gets or sets the client-side script that executes when a context menu item's Click event is raised.

Protected Properties

Name Return DeclaringType Summary
Protected PropertyHasClickEvent Boolean Get whether the ContextMenu has the click event.

Public Events

Name Event Arguments DeclaringType Summary
Public EventClick ContextMenuItemClickEventArgs Occurs when the context menu item is clicked.

Public Constructors

ContextMenuItem()

Initializes a new instance of the ContextMenuitem. class.

Overloads

Initializes a new instance of the ContextMenuitem. class.

Remarks

Parameters

Name Type Description

Go Back

ContextMenuItem(String)

Initializes a new instance of the ContextMenuitem. class with the innerHtml specified.

Overloads

Initializes a new instance of the ContextMenuitem. class.

Remarks

Parameters

Name Type Description
innerHtml String<!– System.String –> The innerHtml of the context menu item.

Go Back

ContextMenuItem(String, String)

Initializes a new instance of the ContextMenuitem. class with the innerHtml and CSS class string specified.

Overloads

Initializes a new instance of the ContextMenuitem. class.

Remarks

Parameters

Name Type Description
innerHtml String<!– System.String –> The innerHtml of the context menu item.
cssClass String<!– System.String –> The CSS class of the context menu item.

Go Back

ContextMenuItem(String, String, String)

Initializes a new instance of the ContextMenuitem. class with innerHtml, CSS class and hover CSS class specified.

Overloads

Initializes a new instance of the ContextMenuitem. class.

Remarks

Parameters

Name Type Description
innerHtml String<!– System.String –> The innerHtml of the context menu item.
cssClass String<!– System.String –> The CSS class of the context menu item.
hoverCssClass String<!– System.String –> The CSS class of the context menu item when the mouse is hovering over it.

Go Back

ContextMenuItem(String, String, String, String)

Initializes a new instance of the ContextMenuitem. class with innerHtml, CSS class and hover CSS class specified.

Overloads

Initializes a new instance of the ContextMenuitem. class.

Remarks

Parameters

Name Type Description
innerHtml String<!– System.String –> The innerHtml of the context menu item.
cssClass String<!– System.String –> The CSS class of the context menu item.
hoverCssClass String<!– System.String –> The CSS class of the context menu item when the mouse is hovering over it.
id String<!– System.String –> The id of the context menu item.

Go Back

Protected Constructors

Public Methods

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 has information for creating the context menu item at the client side.

Remarks

Return Value

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

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WebEdition.ContextMenuItem –> 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

OnClick(ContextMenuItemClickEventArgs)

Raises the Click event of the ContextMenuItem object.

Remarks

The &lt;strong&gt;OnClick&lt;/strong&gt; method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.&lt;strong&gt;Notes to Inheritors:&lt;/strong&gt; When overriding &lt;strong&gt;OnClick&lt;/strong&gt; in a derived class, be sure to call the base class's &lt;strong&gt;OnClick&lt;/strong&gt; method so that registered delegates receive the event.

Return Value

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

Parameters

Name Type Description
e ContextMenuItemClickEventArgs<!– ThinkGeo.MapSuite.WebEdition.ContextMenuItemClickEventArgs –> The ContextMenuItemClickEventArgs that contains event data.

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

Public Properties

CssClass

Gets or sets the Cascading Style Sheet (CSS) class name string that affects the appearance of the context menu item.

Remarks

Return Value

Return Type
String<!– System.String –>

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

HoverCssClass

Gets or sets the Cascading Style Sheet (CSS) class name string that applies when the mouse hovers over the menu item.

Remarks

Return Value

Return Type
String<!– System.String –>

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

Id

Gets the identifier of the context menu item.

Remarks

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

Return Value

Return Type
String<!– System.String –>

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

InnerHtml

Gets or sets the content HTML of the context menu item.

Remarks

Return Value

Return Type
String<!– System.String –>

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

Gets the menu item collection of the context menu item.

Remarks

Return Value

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

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

OnClientClick

Gets or sets the client-side script that executes when a context menu item's Click event is raised.

Remarks

Return Value

Return Type
String<!– System.String –>

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

Protected Properties

HasClickEvent

Get whether the ContextMenu has the click event.

Remarks

Return Value

Return Type
Boolean<!– System.Boolean –>

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

Public Events

Click

Occurs when the context menu item is clicked.

Remarks

Event Arguments

Event Arguments
ContextMenuItemClickEventArgs<!– ThinkGeo.MapSuite.WebEdition.ContextMenuItemClickEventArgs –>

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

NOTOC WebEdition ThinkGeo.MapSuite.WebEdition UpdateDocumentation

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