DisplayInfo 构造函数

定义

重载

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

初始化 DisplayInfo 类的新实例。

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

初始化 DisplayInfo 类的新实例。

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

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

初始化 DisplayInfo 类的新实例。

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)

参数

width
Double

显示器的宽度。

height
Double

显示器的高度。

density
Double

屏幕密度。

orientation
DisplayOrientation

当前方向。

rotation
DisplayRotation

设备的旋转。

适用于

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

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

初始化 DisplayInfo 类的新实例。

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)

参数

width
Double

显示器的宽度。

height
Double

显示器的高度。

density
Double

屏幕密度。

orientation
DisplayOrientation

当前方向。

rotation
DisplayRotation

设备的旋转。

rate
Single

显示的刷新率。

适用于