Screen Constructor
Initializes a new instance of the
Screen class.
Namespace: Avalonia.PlatformAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
[UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")]
public Screen(
double scaling,
PixelRect bounds,
PixelRect workingArea,
bool isPrimary
)
<UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")>
Public Sub New (
scaling As Double,
bounds As PixelRect,
workingArea As PixelRect,
isPrimary As Boolean
)
[<UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")>]
new :
scaling : float *
bounds : PixelRect *
workingArea : PixelRect *
isPrimary : bool -> Screen
Parameters
- scaling Double
- The scaling factor applied to the screen by the operating system.
- bounds PixelRect
- The overall pixel-size of the screen.
- workingArea PixelRect
- The actual working-area pixel-size of the screen.
- isPrimary Boolean
- Whether the screen is the primary one.