DisplayInfo Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents information about the device's screen.
public value class DisplayInfo : IEquatable<Microsoft::Maui::Devices::DisplayInfo>
public readonly struct DisplayInfo : IEquatable<Microsoft.Maui.Devices.DisplayInfo>
type DisplayInfo = struct
Public Structure DisplayInfo
Implements IEquatable(Of DisplayInfo)
- Inheritance
-
DisplayInfo
- Implements
Constructors
DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation, Single) |
Initializes a new instance of the DisplayInfo class. |
DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation) |
Initializes a new instance of the DisplayInfo class. |
Properties
Density |
Gets a value representing the screen density. |
Height |
Gets the height of the screen (in pixels) for the current Orientation. |
Orientation |
Gets the orientation of the device's display. |
RefreshRate |
Gets the refresh rate (in Hertz) of the device's display. |
Rotation |
Gets the orientation of the device's display. |
Width |
Gets the width of the screen (in pixels) for the current Orientation. |
Methods
Equals(DisplayInfo) |
Compares the underlying DisplayInfo instances. |
Equals(Object) |
If equal to another object. |
GetHashCode() |
Gets the hash code for this display info instance. |
ToString() |
Returns a string representation of the current values of this display info instance. |
Operators
Equality(DisplayInfo, DisplayInfo) |
Equality operator for equals. |
Inequality(DisplayInfo, DisplayInfo) |
Inequality operator. |