public void AdjustCarets() { vCaret.Location = ActiveChild.GetVerticalCaretLocation(); vCaret.CaretLength = ActiveChild.GetVerticalCaretLength(); EquationContainer innerMost = ((RowContainer)ActiveChild).GetInnerMostEquationContainer(); hCaret.Location = innerMost.GetHorizontalCaretLocation(); hCaret.CaretLength = innerMost.GetHorizontalCaretLength(); }