Click or drag to resize

ScreenInfoClipToAllScreens method

Returns the transferred point, but changes it if necessary, its coordinates in such a way that the point, including margins, is on every case is within the maximum coordinates for all screens.

Namespace: NetEti.MultiScreen
Assembly: NetEti.MultiScreen (in NetEti.MultiScreen.dll) Version: 1.0.0+6dae38196d8eac9695b29c123b220fb2bfe07211
Syntax
public static Point ClipToAllScreens(
	
	Point point,
	
	double horizontalMargin,
	
	double verticalMargin
)

Parameters

point  Point
Point that may not be within the current screen.
horizontalMargin  Double
Minimum horizontal distance to the edges of the screen.
verticalMargin  Double
Minimum vertical distance to the edges of the screen.

Return value

Point
Point which, including the margin, is always within the current screen.
See also