property G2Host.HostContext as HostContext
Gets the host's context at the current cursor position.

TypeDescription
HostContext A HostContext object that holds information about item, task and link from the current cursor position 
The HostContext property holds information about item, task and link from the current cursor position. The HitTest property determines the host' objects that can be accessed at current cursor location. For instance, if the HitTest property includes the exHTValidColumn flag, it indicates that the cursor hovers a column, and the Column property gives the index of the column from the cursor. The Context event notifies your application once the user right clicks the control. The HostContext property can be used on any event.

The following VB sample displays information about the current context, when user right clicks the control:

Private Sub G2Host1_Context()
	With G2Host1
		Debug.Print( .HostContext.ToString )
	End With
End Sub