Skip to main content

ScreenFromPoint Method

Retrieves a Screen for the display that contains the specified point.

Definition​

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

public Screen? ScreenFromPoint(
PixelPoint point
)

Parameters​

  PixelPoint
A Point that specifies the location for which to retrieve a Screen.

Return Value​

Screen
The Screen.

Remarks​

On mobile, this method always returns null.

See Also​

Reference​

Screens Class
Avalonia.Controls Namespace