語言

ViewGroup.MarginLayoutParams.TopMargin 屬性

定義

以孩子像素為單位的頂端邊距。

[Android.Runtime.Register("topMargin")]
public int TopMargin { get; set; }
[<Android.Runtime.Register("topMargin")>]
member this.TopMargin : int with get, set

屬性值

屬性

備註

以孩子像素為單位的頂端邊距。 利潤率應為正值。 在重新指派一個新值給這個欄位後呼叫 ViewGroup#setLayoutParams(LayoutParams)

Java 文件 android.view.ViewGroup.MarginLayoutParams.topMargin

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於