Screen Class

Represents a single display screen.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public class Screen : IEquatable<Screen>
Inheritance
Object    Screen
Derived
Implements
IEquatableScreen

Constructors

Screen(Double, PixelRect, PixelRect, Boolean) Initializes a new instance of the Screen class.

Properties

Bounds Gets the overall pixel-size and position of the screen.
CurrentOrientation Gets the current orientation of a screen.
DisplayName Gets the device name associated with a display.
IsPrimary Gets a value indicating whether the screen is the primary one.
Scaling Gets the scaling factor applied to the screen by the operating system.
WorkingArea Gets the actual working-area pixel-size of the screen.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Equals(Screen)Indicates whether the current object is equal to another object of the same type.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Overrides ObjectToString)
TryGetPlatformHandle Tries to get the platform handle for the Screen.

Operators

See Also