Beispiel #1
0
 /// <summary>
 /// Checks if the given <see cref="ITextSnapshotLine"/> has any non-whitespace characters
 /// </summary>
 /// <param name="line">The <see cref="ITextSnapshotLine"/> on which the check is performed</param>
 /// <returns>True if the <see cref="ITextSnapshotLine"/>  contains any non-whitespace characters</returns>
 public static bool HasAnyNonWhitespaceCharacters(ITextSnapshotLine line)
 {
     return(line.IndexOfPreviousNonWhiteSpaceCharacter(line.End.Position - line.Start.Position) != -1);
 }