public virtual void OnTextChanging(ref string text) { // Darren - Limit the number of characters. Eat everything over limit. if (currentTB.LimitText > 0) { if (text?.Length > currentTB.LimitText) { text = text.Substring(0, currentTB.LimitText); } else if (currentTB.TextLength + text?.Length > currentTB.LimitText) { text = string.Empty; } } if (TextChanging != null) { var args = new TextChangingEventArgs() { InsertingText = text }; TextChanging(this, args); text = args.InsertingText; if (args.Cancel) { text = string.Empty; } } ; }
internal void OnTextChanging(ref string text) { if (TextChanging != null) { var args = new TextChangingEventArgs() { InsertingText = text }; TextChanging(this, args); text = args.InsertingText; } ; }
public virtual void OnTextChanging(ref string text) { if (TextChanging != null) { var args = new TextChangingEventArgs { InsertingText = text }; TextChanging(this, args); text = args.InsertingText; if (args.Cancel) { text = string.Empty; } } }
internal void OnTextChanging(ref String text) { if (TextChanging != null) { var args = new TextChangingEventArgs() { InsertingText = text }; TextChanging(this, args); text = args.InsertingText; if (args.Cancel) { text = String.Empty; } } ; }
private void code_TextChanging(object sender, FastColoredTextBoxNS.TextChangingEventArgs e) { }
void fctbDocument_TextChanging(object sender, FastColoredTextBoxNS.TextChangingEventArgs e) { // throw new NotImplementedException(); }