xamarinmac
namespace AppKit
{
    [Protocol(Name = "NSTextInput", WrapperType = typeof(NSTextInputWrapper))]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "UnmarkText", Selector = "unmarkText")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "InsertText", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSObject) }, Selector = "insertText:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "SetMarkedText", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSObject), typeof(NSRange) }, Selector = "setMarkedText:selectedRange:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "GetAttributedSubstring", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSRange) }, ReturnType = typeof(NSAttributedString), Selector = "attributedSubstringFromRange:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "GetFirstRectForCharacterRange", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(NSRange) }, ReturnType = typeof(CGRect), Selector = "firstRectForCharacterRange:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "GetCharacterIndex", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(CGPoint) }, ReturnType = typeof(nuint), Selector = "characterIndexForPoint:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "hasMarkedText", IsProperty = true, IsRequired = true, IsStatic = false, Name = "HasMarkedText", PropertyType = typeof(bool), Selector = "hasMarkedText")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "conversationIdentifier", IsProperty = true, IsRequired = true, IsStatic = false, Name = "ConversationIdentifier", PropertyType = typeof(nint), Selector = "conversationIdentifier")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "markedRange", IsProperty = true, IsRequired = true, IsStatic = false, Name = "MarkedRange", PropertyType = typeof(NSRange), Selector = "markedRange")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "selectedRange", IsProperty = true, IsRequired = true, IsStatic = false, Name = "SelectedRange", PropertyType = typeof(NSRange), Selector = "selectedRange")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "validAttributesForMarkedText", IsProperty = true, IsRequired = true, IsStatic = false, Name = "ValidAttributesForMarkedText", PropertyType = typeof(NSString[]), Selector = "validAttributesForMarkedText")]
    public interface INSTextInput : INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [Export("attributedSubstringFromRange:")]
        [Preserve(Conditional = true)]
        NSAttributedString! GetAttributedSubstring(NSRange range);
    }
}
.NET 6.07.08.09.0
Information specific to xamarinmac
Assembly

Xamarin.Mac , Version=0.0.0.0, PublicKeyToken=84e04ff9cfb79065

Referencing

The API is automatically referenced.

Platform Restrictions

This framework does not have platform annotations.

  • Built-in API
  • Package-provided API

11/13/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙