public static Rect GetTextViewPosition(TextView textView, int offset) { var position = new TextViewPosition(textView.TextDocument.GetLocation(offset)); return GetTextPositionInViewPort(textView, position); }