Returns whether a user should be allowed to insert text in place of a range of content.
Original signature is '- (BOOL)webView:(WebView *)webView shouldInsertText:(NSString *)text replacingDOMRange:(DOMRange *)range givenAction:(WebViewInsertAction)action'
Available in Mac OS X v10.3.9 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public bool WebViewShouldInsertTextReplacingDOMRangeGivenActionMessage( WebView webView, NSString text, IntPtr range, WebViewInsertAction action )
Public Function WebViewShouldInsertTextReplacingDOMRangeGivenActionMessage ( _ webView As WebView, _ text As NSString, _ range As IntPtr, _ action As WebViewInsertAction _ ) As Boolean
public: bool WebViewShouldInsertTextReplacingDOMRangeGivenActionMessage( WebView^ webView, NSString^ text, IntPtr range, WebViewInsertAction action )
Parameters
- webView (WebView)
- The web view that the user is editing.
- text (NSString)
- The text to insert.
- range (IntPtr)
- The portion of the document that will be replaced with text.
- action (WebViewInsertAction)
- Indicates the type of user action that initiated the insertion.
Return Value
YES if the user should be allowed to insert text in webView; otherwise, NO.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)