net9.0-macos14.2
namespace AppKit
{
    [Protocol(Name = "NSTextInputClient", WrapperType = typeof(NSTextInputClientWrapper))]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "UnmarkText", Selector = "unmarkText")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "InsertText", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSObject), typeof(NSRange) }, Selector = "insertText:replacementRange:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "SetMarkedText", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSObject), typeof(NSRange), typeof(NSRange) }, Selector = "setMarkedText:selectedRange:replacementRange:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "GetAttributedSubstring", ParameterByRef = new[] { false, true }, ParameterType = new[] { typeof(NSRange), typeof(NSRange) }, ReturnType = typeof(NSAttributedString), Selector = "attributedSubstringForProposedRange:actualRange:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "GetFirstRect", ParameterByRef = new[] { false, true }, ParameterType = new[] { typeof(NSRange), typeof(NSRange) }, ReturnType = typeof(CGRect), Selector = "firstRectForCharacterRange:actualRange:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "GetCharacterIndex", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(CGPoint) }, ReturnType = typeof(UIntPtr), Selector = "characterIndexForPoint:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetFractionOfDistanceThroughGlyph", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(CGPoint) }, ReturnType = typeof(NFloat), Selector = "fractionOfDistanceThroughGlyphForPoint:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetBaselineDelta", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(UIntPtr) }, ReturnType = typeof(NFloat), Selector = "baselineDeltaForCharacterAtIndex:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DrawsVertically", ParameterByRef = new[] { false }, ParameterType = new[] { typeof(UIntPtr) }, ReturnType = typeof(bool), Selector = "drawsVerticallyForCharacterAtIndex:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "selectedRange", IsProperty = true, IsRequired = true, IsStatic = false, Name = "SelectedRange", PropertyType = typeof(NSRange), Selector = "selectedRange")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "markedRange", IsProperty = true, IsRequired = true, IsStatic = false, Name = "MarkedRange", PropertyType = typeof(NSRange), Selector = "markedRange")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "hasMarkedText", IsProperty = true, IsRequired = true, IsStatic = false, Name = "HasMarkedText", PropertyType = typeof(bool), Selector = "hasMarkedText")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "validAttributesForMarkedText", IsProperty = true, IsRequired = true, IsStatic = false, Name = "ValidAttributesForMarkedText", PropertyType = typeof(NSString[]), Selector = "validAttributesForMarkedText")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "attributedString", IsProperty = true, IsRequired = false, IsStatic = false, Name = "AttributedString", PropertyType = typeof(NSAttributedString), Selector = "attributedString")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "windowLevel", IsProperty = true, IsRequired = false, IsStatic = false, Name = "WindowLevel", PropertyType = typeof(NSWindowLevel), Selector = "windowLevel")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "unionRectInVisibleSelectedRange", IsProperty = true, IsRequired = false, IsStatic = false, Name = "UnionRectInVisibleSelectedRange", PropertyType = typeof(CGRect), Selector = "unionRectInVisibleSelectedRange")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "documentVisibleRect", IsProperty = true, IsRequired = false, IsStatic = false, Name = "DocumentVisibleRect", PropertyType = typeof(CGRect), Selector = "documentVisibleRect")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "preferredTextAccessoryPlacement", IsProperty = true, IsRequired = false, IsStatic = false, Name = "PreferredTextAccessoryPlacement", PropertyType = typeof(NSTextCursorAccessoryPlacement), Selector = "preferredTextAccessoryPlacement")]
    [SupportedOSPlatform("macos")]
    [UnsupportedOSPlatform("maccatalyst")]
    public interface INSTextInputClient : INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [Export("unmarkText")]
        [Preserve(Conditional = true)]
        void UnmarkText();
    }
}
.NET 6.07.08.09.0
Information specific to net9.0
Platforms This API is only available when you target a specific platform:
macOS 10.1410.1510.1611.011.111.211.312.012.112.313.013.113.314.014.2
Information specific to net9.0-macos14.2
Assembly

Microsoft.macOS , Version=14.2.0.0, PublicKeyToken=84e04ff9cfb79065

Referencing

The API is automatically referenced.

Platform Restrictions

This API is only supported on the following platforms:

  • Mac Catalyst
  • macOS
  • Built-in API
  • Package-provided API

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