www.Chart4.NET | Samples

Context menu containing chart options to display on the chart on a user action. See Remarks section.

Namespace:  UnifoChart.Hierarchy
Assembly:  UnifoChart.Hierarchy (in UnifoChart.Hierarchy.dll) Version: 2.6.0.0 (2.6)

Syntax

C#
public HierarchyMenuStrip hpMenu4Chart { get; set; }
Visual Basic (Declaration)
Public Property hpMenu4Chart As HierarchyMenuStrip
Visual Basic (Usage)
Dim instance As HierarchyWin
Dim value As HierarchyMenuStrip

value = instance.hpMenu4Chart

instance.hpMenu4Chart = value
Visual C++
public:
property HierarchyMenuStrip^ hpMenu4Chart {
	HierarchyMenuStrip^ get ();
	void set (HierarchyMenuStrip^ value);
}
J#
/** @property */
public HierarchyMenuStrip get_hpMenu4Chart()
/** @property */
public  void set_hpMenu4Chart(HierarchyMenuStrip value)
JScript
public function get hpMenu4Chart () : HierarchyMenuStrip
public function set hpMenu4Chart (value : HierarchyMenuStrip)
JavaScript
function get_hpMenu4Chart();
function set_hpMenu4Chart(value);

Field Value

System.Windows.Forms.HierarchyMenuStrip

Remarks

  • Set AvailableOnChart property to true to see the context menu on the chart on a user action (ex: on right-clicking).
  • Set Button4MouseAction property to specify the user action on which the menu has to be displayed.
  • Some items should be added to Items collection to get it displayed. Use ContextMenuStrip members or designer to add and remove items of the menu.
  • To add events to the (newly added) items, access the control from source code window.
  • If no items are added, the default menu would be displayed. To enable the default context menu, set hpMenu4Context.AvailableOnChart property to true.

See Also