Share via


INSTextInput Interface

Definition

This interface represents the Objective-C protocol NSTextInput.

[Foundation.Protocol(Name="NSTextInput", WrapperType=typeof(AppKit.NSTextInputWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="InsertText", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSObject) }, Selector="insertText:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetMarkedText", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSObject), typeof(Foundation.NSRange) }, Selector="setMarkedText:selectedRange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnmarkText", Selector="unmarkText")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetAttributedSubstring", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSRange) }, ReturnType=typeof(Foundation.NSAttributedString), Selector="attributedSubstringFromRange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetFirstRectForCharacterRange", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSRange) }, ReturnType=typeof(CoreGraphics.CGRect), Selector="firstRectForCharacterRange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetCharacterIndex", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(CoreGraphics.CGPoint) }, ReturnType=typeof(System.UIntPtr), Selector="characterIndexForPoint:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="hasMarkedText", IsProperty=true, IsRequired=true, IsStatic=false, Name="HasMarkedText", PropertyType=typeof(System.Boolean), Selector="hasMarkedText")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="conversationIdentifier", IsProperty=true, IsRequired=true, IsStatic=false, Name="ConversationIdentifier", PropertyType=typeof(System.IntPtr), Selector="conversationIdentifier")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="markedRange", IsProperty=true, IsRequired=true, IsStatic=false, Name="MarkedRange", PropertyType=typeof(Foundation.NSRange), Selector="markedRange")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="selectedRange", IsProperty=true, IsRequired=true, IsStatic=false, Name="SelectedRange", PropertyType=typeof(Foundation.NSRange), Selector="selectedRange")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="validAttributesForMarkedText", IsProperty=true, IsRequired=true, IsStatic=false, Name="ValidAttributesForMarkedText", PropertyType=typeof(Foundation.NSString[]), Selector="validAttributesForMarkedText")]
public interface INSTextInput : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="NSTextInput", WrapperType=typeof(AppKit.NSTextInputWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="InsertText", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSObject) }, Selector="insertText:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetMarkedText", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSObject), typeof(Foundation.NSRange) }, Selector="setMarkedText:selectedRange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnmarkText", Selector="unmarkText")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetAttributedSubstring", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSRange) }, ReturnType=typeof(Foundation.NSAttributedString), Selector="attributedSubstringFromRange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetFirstRectForCharacterRange", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSRange) }, ReturnType=typeof(CoreGraphics.CGRect), Selector="firstRectForCharacterRange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetCharacterIndex", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(CoreGraphics.CGPoint) }, ReturnType=typeof(System.UIntPtr), Selector="characterIndexForPoint:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="hasMarkedText", IsProperty=true, IsRequired=true, IsStatic=false, Name="HasMarkedText", PropertyType=typeof(System.Boolean), Selector="hasMarkedText")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="conversationIdentifier", IsProperty=true, IsRequired=true, IsStatic=false, Name="ConversationIdentifier", PropertyType=typeof(System.IntPtr), Selector="conversationIdentifier")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="markedRange", IsProperty=true, IsRequired=true, IsStatic=false, Name="MarkedRange", PropertyType=typeof(Foundation.NSRange), Selector="markedRange")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="selectedRange", IsProperty=true, IsRequired=true, IsStatic=false, Name="SelectedRange", PropertyType=typeof(Foundation.NSRange), Selector="selectedRange")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="validAttributesForMarkedText", IsProperty=true, IsRequired=true, IsStatic=false, Name="ValidAttributesForMarkedText", PropertyType=typeof(Foundation.NSString[]), Selector="validAttributesForMarkedText")>]
type INSTextInput = 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.

Applies to