NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem Class Reference

A Plot menu item suitable for specifying basic menu items. More...

Inheritance diagram for NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem:

NPlot::Windows::PlotSurface2D::PlotContextMenu::IPlotMenuItem NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotShowCoordinatesMenuItem NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotZoomBackMenuItem List of all members.

Public Member Functions

 PlotMenuItem (string text, int index, EventHandler callback)
 Constructor.
virtual void OnPopup (PlotContextMenu plotContextMenu)
 Called before menu drawn.

Properties

string Text
 The text to put in the menu for this menu item.
int index_
int Index
 Index of this menu item in the menu.
EventHandler callback_
EventHandler Callback
 EventHandler to call if menu selected.
System.Windows.Forms.MenuItem menuItem_
System.Windows.Forms.MenuItem MenuItem
 The Windows.Forms.MenuItem associated with this IPlotMenuItem.

Private Attributes

string text_

Detailed Description

A Plot menu item suitable for specifying basic menu items.

Definition at line 2335 of file Windows.PlotSurface2D.cs.


Constructor & Destructor Documentation

NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::PlotMenuItem string  text,
int  index,
EventHandler  callback
[inline]
 

Constructor.

Parameters:
text Menu item text
index Index in the manu
callback EventHandler to call if menu selected.

Definition at line 2344 of file Windows.PlotSurface2D.cs.


Member Function Documentation

virtual void NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::OnPopup PlotContextMenu  plotContextMenu  )  [inline, virtual]
 

Called before menu drawn.

Parameters:
plotContextMenu The plot menu this item is a member of.

Implements NPlot::Windows::PlotSurface2D::PlotContextMenu::IPlotMenuItem.

Reimplemented in NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotZoomBackMenuItem, and NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotShowCoordinatesMenuItem.

Definition at line 2410 of file Windows.PlotSurface2D.cs.


Member Data Documentation

string NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::text_ [private]
 

Definition at line 2358 of file Windows.PlotSurface2D.cs.


Property Documentation

EventHandler NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::Callback [get]
 

EventHandler to call if menu selected.

Definition at line 2387 of file Windows.PlotSurface2D.cs.

EventHandler NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::callback_ [private]
 

Definition at line 2382 of file Windows.PlotSurface2D.cs.

int NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::Index [get]
 

Index of this menu item in the menu.

Definition at line 2375 of file Windows.PlotSurface2D.cs.

int NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::index_ [private]
 

Definition at line 2370 of file Windows.PlotSurface2D.cs.

System.Windows.Forms.MenuItem NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::MenuItem [get]
 

The Windows.Forms.MenuItem associated with this IPlotMenuItem.

Implements NPlot::Windows::PlotSurface2D::PlotContextMenu::IPlotMenuItem.

Definition at line 2399 of file Windows.PlotSurface2D.cs.

System.Windows.Forms.MenuItem NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::menuItem_ [private]
 

Definition at line 2394 of file Windows.PlotSurface2D.cs.

string NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotMenuItem::Text [get]
 

The text to put in the menu for this menu item.

Definition at line 2363 of file Windows.PlotSurface2D.cs.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 01:04:09 2005 for NPlot by  doxygen 1.4.5