ToolBarButton.Contains Method

Tells if a point in screen coordinates is inside the button.
Public Function Contains( _ 
ByVal mousePos As Point
) As Boolean
This language is not supported or no code example is available.
public bool Contains( 
Point mousePos 
)
This language is not supported or no code example is available.

Parameters

mousePos
Point

Mouse cursor position (zero on top) in viewport coordinates (see ScreenToViewport)

Return Value

bool

True if the point is inside the button

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition