/// <summary> /// Counts number of line breaks between position and the nearest /// non-whitespace character that follows the position /// </summary> public static int LineBreaksAfterPosition(this ITextProvider textProvider, int position) { return(textProvider.LineBreaksAfterPosition(position, textProvider.Length)); }