Viewport.Contains Method

// Tells if the viewport contains the given point in screen coordinates (0,0 on top-left) //
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

Return Value

bool

True if the point is inside the viewport

.NET Framework

Supported in: 4.8

In this article

Definition