ScreensScreenFromBounds Method

Retrieves a Screen for the display that contains the rectangle.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public Screen? ScreenFromBounds(
	PixelRect bounds
)

Parameters

bounds  PixelRect
Bounds that specifies the area for which to retrieve the display.

Return Value

Screen
The Screen.

Remarks

On mobile, this method always returns null.

See Also