共用方式為


DragEvent.GetY Method

Definition

Gets the Y coordinate of the drag point.

[Android.Runtime.Register("getY", "()F", "GetGetYHandler")]
public virtual float GetY ();
[<Android.Runtime.Register("getY", "()F", "GetGetYHandler")>]
abstract member GetY : unit -> single
override this.GetY : unit -> single

Returns

The current drag point's Y coordinate

Attributes

Remarks

Gets the Y coordinate of the drag point. The value is only valid if the event action is #ACTION_DRAG_STARTED, #ACTION_DRAG_LOCATION or #ACTION_DROP.

Java documentation for android.view.DragEvent.getY().

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