Share via


DisplayInfo Constructors

Definition

Overloads

DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation)

Initializes a new instance of the DisplayInfo class.

DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation, Single)

Initializes a new instance of the DisplayInfo class.

DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation)

Source:
DisplayInfo.shared.cs
Source:
DisplayInfo.shared.cs

Initializes a new instance of the DisplayInfo class.

public:
 DisplayInfo(double width, double height, double density, Microsoft::Maui::Devices::DisplayOrientation orientation, Microsoft::Maui::Devices::DisplayRotation rotation);
public DisplayInfo (double width, double height, double density, Microsoft.Maui.Devices.DisplayOrientation orientation, Microsoft.Maui.Devices.DisplayRotation rotation);
new Microsoft.Maui.Devices.DisplayInfo : double * double * double * Microsoft.Maui.Devices.DisplayOrientation * Microsoft.Maui.Devices.DisplayRotation -> Microsoft.Maui.Devices.DisplayInfo
Public Sub New (width As Double, height As Double, density As Double, orientation As DisplayOrientation, rotation As DisplayRotation)

Parameters

width
Double

The width of the display.

height
Double

The height of the display.

density
Double

The screen density.

orientation
DisplayOrientation

The current orientation.

rotation
DisplayRotation

The rotation of the device.

Applies to

DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation, Single)

Source:
DisplayInfo.shared.cs
Source:
DisplayInfo.shared.cs

Initializes a new instance of the DisplayInfo class.

public:
 DisplayInfo(double width, double height, double density, Microsoft::Maui::Devices::DisplayOrientation orientation, Microsoft::Maui::Devices::DisplayRotation rotation, float rate);
public DisplayInfo (double width, double height, double density, Microsoft.Maui.Devices.DisplayOrientation orientation, Microsoft.Maui.Devices.DisplayRotation rotation, float rate);
new Microsoft.Maui.Devices.DisplayInfo : double * double * double * Microsoft.Maui.Devices.DisplayOrientation * Microsoft.Maui.Devices.DisplayRotation * single -> Microsoft.Maui.Devices.DisplayInfo
Public Sub New (width As Double, height As Double, density As Double, orientation As DisplayOrientation, rotation As DisplayRotation, rate As Single)

Parameters

width
Double

The width of the display.

height
Double

The height of the display.

density
Double

The screen density.

orientation
DisplayOrientation

The current orientation.

rotation
DisplayRotation

The rotation of the device.

rate
Single

The refresh rate of the display.

Applies to