BCGControlBar Library for .NET
IsPointNearEdge Method




The dock edge of the dockbar to compare.
The boundaries of the dockbar to compare.
The point to compare with the boundaries of the dockedge.
Specifies if the specified point is located out of the dock bar.
Specifies the maximum space between the boundaries of the dockbar and the current point when the returned value should be true.
Called by the framework on searching the nearest dock bar. Indicates a value if the specified point is located near any dock edge.
Syntax
'Declaration
 
Public Shared Function IsPointNearEdge( _
   ByVal edge As DockEdge, _
   ByVal rectBounds As Rectangle, _
   ByVal pt As Point, _
   ByVal bOuter As Boolean, _
   ByVal nSencitivity As Integer _
) As Boolean
'Usage
 
Dim edge As DockEdge
Dim rectBounds As Rectangle
Dim pt As Point
Dim bOuter As Boolean
Dim nSencitivity As Integer
Dim value As Boolean
 
value = GlobalUtils.IsPointNearEdge(edge, rectBounds, pt, bOuter, nSencitivity)
public static bool IsPointNearEdge( 
   DockEdge edge,
   Rectangle rectBounds,
   Point pt,
   bool bOuter,
   int nSencitivity
)
public: static bool IsPointNearEdge( 
   DockEdge edge,
   Rectangle rectBounds,
   Point pt,
   bool bOuter,
   int nSencitivity
) 
public:
static bool IsPointNearEdge( 
   DockEdge edge,
   Rectangle rectBounds,
   Point pt,
   bool bOuter,
   int nSencitivity
) 

Parameters

edge
The dock edge of the dockbar to compare.
rectBounds
The boundaries of the dockbar to compare.
pt
The point to compare with the boundaries of the dockedge.
bOuter
Specifies if the specified point is located out of the dock bar.
nSencitivity
Specifies the maximum space between the boundaries of the dockbar and the current point when the returned value should be true.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GlobalUtils Class
GlobalUtils Members

Send Feedback