ViewGroup.MarginLayoutParams.TopMargin 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以孩子像素為單位的頂端邊距。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。