예제 #1
0
        public static string Wrap(string text, int caretIndex, int subjectWidth, int bodyWidth, bool blankSecondLine, out int caretIndexDelta)
        {
            var formatter = new TextFormatter(subjectWidth, bodyWidth, blankSecondLine);

            return(formatter.Wrap(text, caretIndex, out caretIndexDelta));
        }
예제 #2
0
        public static int CountLineCharsLeft(string text, int caretIndex, int subjectWidth, int bodyWidth, bool blankSecondLine)
        {
            var formatter = new TextFormatter(subjectWidth, bodyWidth, blankSecondLine);

            return(formatter.CountLineCharsLeft(text, caretIndex));
        }