www.Chart4.NET | Samples

Default context menu containing chart options to display on chart and a node 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 hpMenu4Context { get; set; }
Visual Basic (Declaration)
Public Property hpMenu4Context As HierarchyMenuStrip
Visual Basic (Usage)
Dim instance As HierarchyWin
Dim value As HierarchyMenuStrip

value = instance.hpMenu4Context

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

Field Value

System.Windows.Forms.ContextMenuStrip

Remarks

  • Set AvailableOnChart property to true to see the context menu on the chart on a user action (ex: on right-clicking the node).
  • Set Button4MouseAction property to specify the user action on which the menu has to be displayed.
  • To add events to the (especially for newly added) items, access the control from source code window.

See Also