private int GetWidthChars() { var lineCount = _textView.GetLineCount(); var widthChars = lineCount.ToString(CultureInfo.CurrentCulture).Length + 1; return(widthChars); }