View.LayoutParameters 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得與此視圖相關的 LayoutParams。設定與此視圖相關的版面參數。
public virtual Android.Views.ViewGroup.LayoutParams? LayoutParameters { [Android.Runtime.Register("getLayoutParams", "()Landroid/view/ViewGroup$LayoutParams;", "GetGetLayoutParametersHandler")] get; [Android.Runtime.Register("setLayoutParams", "(Landroid/view/ViewGroup$LayoutParams;)V", "GetSetLayoutParameters_Landroid_view_ViewGroup_LayoutParams_Handler")] set; }
[<get: Android.Runtime.Register("getLayoutParams", "()Landroid/view/ViewGroup$LayoutParams;", "GetGetLayoutParametersHandler")>]
[<set: Android.Runtime.Register("setLayoutParams", "(Landroid/view/ViewGroup$LayoutParams;)V", "GetSetLayoutParameters_Landroid_view_ViewGroup_LayoutParams_Handler")>]
member this.LayoutParameters : Android.Views.ViewGroup.LayoutParams with get, set
屬性值
與此視圖相關的 LayoutParams,若尚未設定參數則為空
- 屬性
備註
財產取得者文件:
Java 文件 android.view.View.getLayoutParams()。
屬性設定文件:
Java 文件 android.view.View.setLayoutParams(android.view.ViewGroup.LayoutParams)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。