ZedGraph LogoZedGraph Class Library Documentation
PointInBox Method (pt, pane, g, scaleFactor)
NamespacesZedGraphTextObjPointInBox(PointF, PaneBase, Graphics, Single)
Determine if the specified screen point lies inside the bounding box of this TextObj. This method takes into account rotation and alignment parameters of the text, as specified in the FontSpec.
Declaration Syntax
C#Visual BasicVisual C++
public override bool PointInBox(
	PointF pt,
	PaneBase pane,
	Graphics g,
	float scaleFactor
)
Public Overrides 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
) override
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 GraphPane 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