語言

View.LayoutParameters 屬性

定義

取得與此視圖相關的 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於