public void InsertAt(int offset, char text, ITextDocumentFilterChain bypass)
 {
     if (rules.IsLineBreak('\0', text) == LineBreakType.None)
     {
         bypass.InsertAt(offset, text);
     }
 }
Example #2
0
 public static bool IsValidCursorPosition(this ITextProcessingRules rules, char prev, char curr)
 {
     return(rules.IsLineBreak(prev, curr) == LineBreakType.None);
 }