Udostępnij za pośrednictwem


DisplayInfo Struct

Definition

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.ValueType
DisplayInfo
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.

Applies to