public override bool ShouldChangeCharacters(UITextField textField, MonoTouch.Foundation.NSRange range, string replacementString) { if (!string.IsNullOrEmpty(replacementString)) { replacementString = replacementString.Replace(TITokenField.kTextEmpty, string.Empty).Replace(TITokenField.kTextHidden, string.Empty); } if ((this.TokenField.Tokens.Count > 0) && string.IsNullOrEmpty(replacementString) && (this.TokenField.Text == TITokenField.kTextEmpty)) { this.TokenField.SelectToken(this.TokenField.Tokens[this.TokenField.Tokens.Count - 1]); return(false); } if (textField.Text == TITokenField.kTextHidden) { this.TokenField.RemoveToken(this.TokenField.SelectedToken); return(!string.IsNullOrEmpty(replacementString)); } if ((replacementString.IndexOfAny(this.TokenField.TokenizingCharacters) >= 0) && !this.TokenField.ForcePickSearchResult) { this.TokenField.TokenizeText(); return(false); } if (this.Delegate != null) { return(this.Delegate.ShouldChangeCharacters(textField, range, replacementString)); } return(true); }
public extern static System.IntPtr IntPtr_objc_msgSendSuper_NSRange_IntPtr_int_IntPtr(System.IntPtr receiver, System.IntPtr selector, MonoTouch.Foundation.NSRange arg1, System.IntPtr arg2, int arg3, System.IntPtr arg4);
public extern static System.IntPtr IntPtr_objc_msgSend_int_IntPtr_ref_NSRange_ref_NSRange_IntPtr(System.IntPtr receiver, System.IntPtr selector, int arg1, System.IntPtr arg2, ref MonoTouch.Foundation.NSRange arg3, ref MonoTouch.Foundation.NSRange arg4, System.IntPtr arg5);