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 screen.
public struct DisplayInfo : IEquatable<Xamarin.Essentials.DisplayInfo>
[System.Runtime.CompilerServices.IsReadOnly]
public struct DisplayInfo : IEquatable<Xamarin.Essentials.DisplayInfo>
- Inheritance
-
System.ValueTypeDisplayInfo
- Attributes
-
System.Runtime.CompilerServices.IsReadOnlyAttribute
- Implements
-
System.IEquatable<DisplayInfo>
Constructors
| DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation, Single) |
Main constructor for Display Information |
| DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation) |
Main constructor for Display Information |
Properties
| Density |
Gets a value representing the screen density. |
| Height |
Gets the height of the screen for the current orientation. |
| Orientation |
Gets the orientation of the device. |
| RefreshRate |
Gets the refresh rate of the display. |
| Rotation |
Gets the rotation from the designated orientation. |
| Width |
Gets the width of the scrreen for the current orientation. |
Methods
| Equals(DisplayInfo) |
If equal to another object. |
| Equals(Object) |
If equal to another object. |
| GetHashCode() |
Gets the hash code for object. |
| ToString() |
String representation of information. |
Operators
| Equality(DisplayInfo, DisplayInfo) |
If equal to another object. |
| Inequality(DisplayInfo, DisplayInfo) |
If not equal to another object. |