INSTextInputClient
AttributedString
DocumentVisibleRect
HasMarkedText
MarkedRange
PreferredTextAccessoryPlacement
SelectedRange
SupportsAdaptiveImageGlyph
UnionRectInVisibleSelectedRange
ValidAttributesForMarkedText
WindowLevel
DrawsVertically(nuint)
GetAttributedSubstring(NSRange, NSRange)
GetBaselineDelta(nuint)
GetCharacterIndex(CGPoint)
GetFirstRect(NSRange, NSRange)
GetFractionOfDistanceThroughGlyph(CGPoint)
InsertAdaptiveImageGlyph(NSAdaptiveImageGlyph, NSRange)
InsertText(NSObject, NSRange)
SetMarkedText(NSObject, NSRange, NSRange)
UnmarkText()
DrawsVertically(INSTextInputClient, nuint)
GetAttributedString(INSTextInputClient)
GetBaselineDelta(INSTextInputClient, nuint)
GetDocumentVisibleRect(INSTextInputClient)
GetFractionOfDistanceThroughGlyph(INSTextInputClient, CGPoint)
GetPreferredTextAccessoryPlacement(INSTextInputClient)
GetSupportsAdaptiveImageGlyph(INSTextInputClient)
GetUnionRectInVisibleSelectedRange(INSTextInputClient)
GetWindowLevel(INSTextInputClient)
InsertAdaptiveImageGlyph(INSTextInputClient, NSAdaptiveImageGlyph, NSRange)
net10.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 = false, IsStatic = false, Name = "InsertAdaptiveImageGlyph", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSAdaptiveImageGlyph), typeof(NSRange) }, Selector = "insertAdaptiveImageGlyph: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")]
[ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "supportsAdaptiveImageGlyph", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SupportsAdaptiveImageGlyph", PropertyType = typeof(bool), Selector = "supportsAdaptiveImageGlyph")]
[SupportedOSPlatform("macos")]
[UnsupportedOSPlatform("maccatalyst")]
public interface INSTextInputClient : INativeObject, IDisposable
{
[BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Export("setMarkedText:selectedRange:replacementRange:")]
[RequiredMember]
virtual void SetMarkedText(NSObject! text, NSRange selectedRange, NSRange replacementRange);
}
}
| .NET | 6.07.08.09.010.0 |
|---|---|
Information specific to net10.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 net10.0-macos14.2 | |
| Assembly | Microsoft.macOS , Version=15.5.0.0, PublicKeyToken=84e04ff9cfb79065 |
| Referencing | The API is automatically referenced. |
| Platform Restrictions | This API is only supported on the following platforms:
|
- Built-in API
- Package-provided API