ZedGraph LogoZedGraph Class Library Documentation
PointInBox Method (pt, pane, g, scaleFactor)
NamespacesZedGraphGraphObjPointInBox(PointF, PaneBase, Graphics, Single)
Determine if the specified screen point lies inside the bounding box of this GraphObj.
Declaration Syntax
C#Visual BasicVisual C++
public virtual bool PointInBox(
	PointF pt,
	PaneBase pane,
	Graphics g,
	float scaleFactor
)
Public Overridable Function PointInBox ( _
	pt As PointF, _
	pane As PaneBase, _
	g As Graphics, _
	scaleFactor As Single _
) As Boolean
public:
virtual bool PointInBox (
	PointF pt, 
	PaneBase^ pane, 
	Graphics^ g, 
	float scaleFactor
)
Parameters
pt (PointF)
The screen point, in pixels
pane (PaneBase)
A reference to the PaneBase object that is the parent or owner of this object.
g (Graphics)
A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.
scaleFactor (Single)
The scaling factor to be used for rendering objects. This is calculated and passed down by the parent PaneBase object using the CalcScaleFactor()() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.
Return Value
true if the point lies in the bounding box, false otherwise

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621