Share via


INSTextFieldDelegate Interface

Definition

This interface represents the Objective-C protocol NSTextFieldDelegate.

[Foundation.Protocol(Name="NSTextFieldDelegate", WrapperType=typeof(AppKit.NSTextFieldDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="TextShouldBeginEditing", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(AppKit.NSText) }, ReturnType=typeof(System.Boolean), Selector="control:textShouldBeginEditing:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="TextShouldEndEditing", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(AppKit.NSText) }, ReturnType=typeof(System.Boolean), Selector="control:textShouldEndEditing:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidFailToFormatString", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(System.String), typeof(System.String) }, ReturnType=typeof(System.Boolean), Selector="control:didFailToFormatString:errorDescription:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidFailToValidatePartialString", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(System.String), typeof(System.String) }, Selector="control:didFailToValidatePartialString:errorDescription:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="IsValidObject", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(Foundation.NSObject) }, ReturnType=typeof(System.Boolean), Selector="control:isValidObject:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DoCommandBySelector", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(AppKit.NSTextView), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(System.Boolean), Selector="control:textView:doCommandBySelector:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetCompletions", ParameterByRef=new System.Boolean[] { false, false, false, false, true }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(AppKit.NSTextView), typeof(System.String[]), typeof(Foundation.NSRange), typeof(System.IntPtr) }, ReturnType=typeof(System.String[]), Selector="control:textView:completions:forPartialWordRange:indexOfSelectedItem:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="EditingEnded", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSNotification) }, Selector="controlTextDidEndEditing:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Changed", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSNotification) }, Selector="controlTextDidChange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="EditingBegan", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSNotification) }, Selector="controlTextDidBeginEditing:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetCandidates", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextField), typeof(AppKit.NSTextView), typeof(Foundation.NSRange) }, ReturnType=typeof(Foundation.NSObject[]), Selector="textField:textView:candidatesForSelectedRange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetTextCheckingResults", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextField), typeof(AppKit.NSTextView), typeof(Foundation.NSTextCheckingResult[]), typeof(Foundation.NSRange) }, ReturnType=typeof(Foundation.NSTextCheckingResult[]), Selector="textField:textView:candidates:forSelectedRange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldSelectCandidate", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextField), typeof(AppKit.NSTextView), typeof(System.UIntPtr) }, ReturnType=typeof(System.Boolean), Selector="textField:textView:shouldSelectCandidateAtIndex:")]
public interface INSTextFieldDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="NSTextFieldDelegate", WrapperType=typeof(AppKit.NSTextFieldDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="TextShouldBeginEditing", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(AppKit.NSText) }, ReturnType=typeof(System.Boolean), Selector="control:textShouldBeginEditing:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="TextShouldEndEditing", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(AppKit.NSText) }, ReturnType=typeof(System.Boolean), Selector="control:textShouldEndEditing:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidFailToFormatString", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(System.String), typeof(System.String) }, ReturnType=typeof(System.Boolean), Selector="control:didFailToFormatString:errorDescription:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidFailToValidatePartialString", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(System.String), typeof(System.String) }, Selector="control:didFailToValidatePartialString:errorDescription:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="IsValidObject", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(Foundation.NSObject) }, ReturnType=typeof(System.Boolean), Selector="control:isValidObject:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DoCommandBySelector", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(AppKit.NSTextView), typeof(ObjCRuntime.Selector) }, ReturnType=typeof(System.Boolean), Selector="control:textView:doCommandBySelector:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetCompletions", ParameterByRef=new System.Boolean[] { false, false, false, false, true }, ParameterType=new System.Type[] { typeof(AppKit.NSControl), typeof(AppKit.NSTextView), typeof(System.String[]), typeof(Foundation.NSRange), typeof(System.IntPtr) }, ReturnType=typeof(System.String[]), Selector="control:textView:completions:forPartialWordRange:indexOfSelectedItem:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="EditingEnded", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSNotification) }, Selector="controlTextDidEndEditing:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Changed", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSNotification) }, Selector="controlTextDidChange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="EditingBegan", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSNotification) }, Selector="controlTextDidBeginEditing:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetCandidates", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextField), typeof(AppKit.NSTextView), typeof(Foundation.NSRange) }, ReturnType=typeof(Foundation.NSObject[]), Selector="textField:textView:candidatesForSelectedRange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetTextCheckingResults", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextField), typeof(AppKit.NSTextView), typeof(Foundation.NSTextCheckingResult[]), typeof(Foundation.NSRange) }, ReturnType=typeof(Foundation.NSTextCheckingResult[]), Selector="textField:textView:candidates:forSelectedRange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldSelectCandidate", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextField), typeof(AppKit.NSTextView), typeof(System.UIntPtr) }, ReturnType=typeof(System.Boolean), Selector="textField:textView:shouldSelectCandidateAtIndex:")>]
type INSTextFieldDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
Changed(NSNotification)
DidFailToFormatString(NSControl, String, String)
DidFailToValidatePartialString(NSControl, String, String)
DoCommandBySelector(NSControl, NSTextView, Selector)
EditingBegan(NSNotification)
EditingEnded(NSNotification)
GetCandidates(NSTextField, NSTextView, NSRange)
GetCompletions(NSControl, NSTextView, String[], NSRange, IntPtr)
GetTextCheckingResults(NSTextField, NSTextView, NSTextCheckingResult[], NSRange)
IsValidObject(NSControl, NSObject)
ShouldSelectCandidate(NSTextField, NSTextView, UIntPtr)
TextShouldBeginEditing(NSControl, NSText)
TextShouldEndEditing(NSControl, NSText)

Extension Methods

Name Description
Changed(INSTextFieldDelegate, NSNotification)
DidFailToFormatString(INSTextFieldDelegate, NSControl, String, String)
DidFailToValidatePartialString(INSTextFieldDelegate, NSControl, String, String)
DoCommandBySelector(INSTextFieldDelegate, NSControl, NSTextView, Selector)
EditingBegan(INSTextFieldDelegate, NSNotification)
EditingEnded(INSTextFieldDelegate, NSNotification)
GetCandidates(INSTextFieldDelegate, NSTextField, NSTextView, NSRange)
GetCompletions(INSTextFieldDelegate, NSControl, NSTextView, String[], NSRange, IntPtr)
GetTextCheckingResults(INSTextFieldDelegate, NSTextField, NSTextView, NSTextCheckingResult[], NSRange)
IsValidObject(INSTextFieldDelegate, NSControl, NSObject)
ShouldSelectCandidate(INSTextFieldDelegate, NSTextField, NSTextView, UIntPtr)
TextShouldBeginEditing(INSTextFieldDelegate, NSControl, NSText)
TextShouldEndEditing(INSTextFieldDelegate, NSControl, NSText)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to