protected override bool GetInsertionInfo(SceneElement container, int insertionIndex, bool isCursorAtEnd, out Point position, out double length, out Orientation orientation) { orientation = Orientation.Horizontal; IViewTextPointer pointerFromIndex = this.GetTextPointerFromIndex(insertionIndex, isCursorAtEnd); if (pointerFromIndex != null && pointerFromIndex.HasValidLayout) { Rect characterRect = pointerFromIndex.GetCharacterRect(LogicalDirection.Forward); position = characterRect.TopLeft; length = characterRect.Height; return(true); } position = new Point(); length = 0.0; return(false); }