Display.GetRectSize(Rect) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
它會將顯示器大小以像素為單位的矩形呈現。
[Android.Runtime.Register("getRectSize", "(Landroid/graphics/Rect;)V", "GetGetRectSize_Landroid_graphics_Rect_Handler")]
public virtual void GetRectSize(Android.Graphics.Rect? outSize);
[<Android.Runtime.Register("getRectSize", "(Landroid/graphics/Rect;)V", "GetGetRectSize_Landroid_graphics_Rect_Handler")>]
abstract member GetRectSize : Android.Graphics.Rect -> unit
override this.GetRectSize : Android.Graphics.Rect -> unit
參數
- outSize
- Rect
一個 Rect 接收尺寸資訊的物件。
- 屬性
備註
它會將顯示器大小以像素為單位的矩形呈現。
此會員已被棄用。 用 WindowMetrics#getBounds() 來取得申請視窗的尺寸。
的 android.view.Display.getRectSize(android.graphics.Rect)Java 檔。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。