net10.0-macos14.2
namespace AppKit
{
    [Protocol(Name = "NSTextInputTraits", WrapperType = typeof(NSTextInputTraitsWrapper))]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "autocorrectionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "AutocorrectionType", PropertyType = typeof(NSTextInputTraitType), Selector = "autocorrectionType", SetterSelector = "setAutocorrectionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "spellCheckingType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SpellCheckingType", PropertyType = typeof(NSTextInputTraitType), Selector = "spellCheckingType", SetterSelector = "setSpellCheckingType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "grammarCheckingType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "GrammarCheckingType", PropertyType = typeof(NSTextInputTraitType), Selector = "grammarCheckingType", SetterSelector = "setGrammarCheckingType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "smartQuotesType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SmartQuotesType", PropertyType = typeof(NSTextInputTraitType), Selector = "smartQuotesType", SetterSelector = "setSmartQuotesType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "smartDashesType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SmartDashesType", PropertyType = typeof(NSTextInputTraitType), Selector = "smartDashesType", SetterSelector = "setSmartDashesType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "smartInsertDeleteType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SmartInsertDeleteType", PropertyType = typeof(NSTextInputTraitType), Selector = "smartInsertDeleteType", SetterSelector = "setSmartInsertDeleteType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "textReplacementType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "TextReplacementType", PropertyType = typeof(NSTextInputTraitType), Selector = "textReplacementType", SetterSelector = "setTextReplacementType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "dataDetectionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "DataDetectionType", PropertyType = typeof(NSTextInputTraitType), Selector = "dataDetectionType", SetterSelector = "setDataDetectionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "linkDetectionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "LinkDetectionType", PropertyType = typeof(NSTextInputTraitType), Selector = "linkDetectionType", SetterSelector = "setLinkDetectionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "textCompletionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "TextCompletionType", PropertyType = typeof(NSTextInputTraitType), Selector = "textCompletionType", SetterSelector = "setTextCompletionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "inlinePredictionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "InlinePredictionType", PropertyType = typeof(NSTextInputTraitType), Selector = "inlinePredictionType", SetterSelector = "setInlinePredictionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "mathExpressionCompletionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "MathExpressionCompletionType", PropertyType = typeof(NSTextInputTraitType), Selector = "mathExpressionCompletionType", SetterSelector = "setMathExpressionCompletionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "writingToolsBehavior", IsProperty = true, IsRequired = false, IsStatic = false, Name = "WritingToolsBehavior", PropertyType = typeof(NSWritingToolsBehavior), Selector = "writingToolsBehavior", SetterSelector = "setWritingToolsBehavior:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "allowedWritingToolsResultOptions", IsProperty = true, IsRequired = false, IsStatic = false, Name = "AllowedWritingToolsResultOptions", PropertyType = typeof(NSWritingToolsResultOptions), Selector = "allowedWritingToolsResultOptions", SetterSelector = "setAllowedWritingToolsResultOptions:")]
    [SupportedOSPlatform("macos")]
    [UnsupportedOSPlatform("maccatalyst")]
    public interface INSTextInputTraits : INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [OptionalMember]
        virtual NSTextInputTraitType TextCompletionType
        {
            [Export("textCompletionType", ArgumentSemantic.Assign)]
            get;
            [Export("setTextCompletionType:", ArgumentSemantic.Assign)]
            set;
        }

    }
}
.NET
10.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.

Preview The API is contained in a preview framework.
Platform Restrictions

The property getter is only supported on the following platforms:

  • Mac Catalyst
  • macOS

The property setter is only supported on the following platforms:

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