DisplayInfo 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表畫面的相關信息。
public struct DisplayInfo : IEquatable<Xamarin.Essentials.DisplayInfo>
[System.Runtime.CompilerServices.IsReadOnly]
public struct DisplayInfo : IEquatable<Xamarin.Essentials.DisplayInfo>
- 繼承
-
System.ValueTypeDisplayInfo
- 屬性
-
System.Runtime.CompilerServices.IsReadOnlyAttribute
- 實作
-
System.IEquatable<DisplayInfo>
建構函式
| DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation, Single) |
顯示資訊的主要建構函式 |
| DisplayInfo(Double, Double, Double, DisplayOrientation, DisplayRotation) |
顯示資訊的主要建構函式 |
屬性
| Density |
取得值,表示螢幕密度。 |
| Height |
取得目前方向的螢幕高度。 |
| Orientation |
取得裝置的方向。 |
| RefreshRate |
取得顯示的重新整理速率。 |
| Rotation |
從指定的方向取得旋轉。 |
| Width |
取得目前方向的 scrreen 寬度。 |
方法
| Equals(DisplayInfo) |
如果 等於另一個物件。 |
| Equals(Object) |
如果 等於另一個物件。 |
| GetHashCode() |
取得物件的哈希碼。 |
| ToString() |
資訊的字串表示。 |
運算子
| Equality(DisplayInfo, DisplayInfo) |
如果 等於另一個物件。 |
| Inequality(DisplayInfo, DisplayInfo) |
如果不等於另一個物件。 |