Determine caret position in TextArea

as the post title says, is there a way to find the caret position in an EditorGUILayout.TextArea.

I want to adjust a ScrollView position as the user types in the TextArea so that the new text is visble.

Thanks.