Share via


View.Top Property

Definition

Top position of this view relative to its parent. -or- Sets the top position of this view relative to its parent.

public int Top { [Android.Runtime.Register("getTop", "()I", "")] get; [Android.Runtime.Register("setTop", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getTop", "()I", "")>]
[<set: Android.Runtime.Register("setTop", "(I)V", "")>]
member this.Top : int with get, set

Property Value

The top of this view, in pixels.

Attributes

Remarks

Property getter documentation:

Top position of this view relative to its parent.

Java documentation for android.view.View.getTop().

Property setter documentation:

Sets the top position of this view relative to its parent. This method is meant to be called by the layout system and should not generally be called otherwise, because the property may be changed at any time by the layout.

Java documentation for android.view.View.setTop(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to