public TextViewPosition?GetPosition(int offset = -1)
 {
     if (offset == -1)
     {
         offset = CodeTextBox.CaretOffset;
     }
     return(CodeTextBox.GetPositionFromOffset(offset));
 }