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