Skip to main content

ScreenFromBounds Method

Retrieves a Screen for the display that contains the rectangle.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public Screen? ScreenFromBounds(
PixelRect bounds
)

Parameters

  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

Reference

Screens Class
Avalonia.Controls Namespace