Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

TextView.GetTop

Queries current position of the text view.

Component Version macOS Windows Linux Server iOS SDK
TextView 9.2 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "TextView.GetTop"; TextView { ; swap } )   More

Parameters

Parameter Description Example Flags
TextView The reference number to the text view. $textview
swap Whether to swap y coordinate. By default we swap them. Pass 0 to disable or 1 to swap. 1 Optional

Result

Returns y coordinate or error.

Description

Queries current position of the text view.
As Cocoa framework uses zero for the bottom coordinate, we have to swap for the normal topdown coordinates to be used.

See also

This function checks for a license.

Created 15th April 2019, last changed 17th July 2022


TextView.GetTag - TextView.GetVisible