net10.0-ios17.2
namespace UIKit
{
    [Protocol(Name = "UITextInputTraits", WrapperType = typeof(UITextInputTraitsWrapper))]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "autocapitalizationType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "AutocapitalizationType", PropertyType = typeof(UITextAutocapitalizationType), Selector = "autocapitalizationType", SetterSelector = "setAutocapitalizationType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "autocorrectionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "AutocorrectionType", PropertyType = typeof(UITextAutocorrectionType), Selector = "autocorrectionType", SetterSelector = "setAutocorrectionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "keyboardType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "KeyboardType", PropertyType = typeof(UIKeyboardType), Selector = "keyboardType", SetterSelector = "setKeyboardType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "keyboardAppearance", IsProperty = true, IsRequired = false, IsStatic = false, Name = "KeyboardAppearance", PropertyType = typeof(UIKeyboardAppearance), Selector = "keyboardAppearance", SetterSelector = "setKeyboardAppearance:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "returnKeyType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "ReturnKeyType", PropertyType = typeof(UIReturnKeyType), Selector = "returnKeyType", SetterSelector = "setReturnKeyType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "enablesReturnKeyAutomatically", IsProperty = true, IsRequired = false, IsStatic = false, Name = "EnablesReturnKeyAutomatically", PropertyType = typeof(bool), Selector = "enablesReturnKeyAutomatically", SetterSelector = "setEnablesReturnKeyAutomatically:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "isSecureTextEntry", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SecureTextEntry", PropertyType = typeof(bool), Selector = "secureTextEntry", SetterSelector = "setSecureTextEntry:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "spellCheckingType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SpellCheckingType", PropertyType = typeof(UITextSpellCheckingType), Selector = "spellCheckingType", SetterSelector = "setSpellCheckingType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "textContentType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "TextContentType", PropertyType = typeof(NSString), Selector = "textContentType", SetterSelector = "setTextContentType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "smartQuotesType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SmartQuotesType", PropertyType = typeof(UITextSmartQuotesType), Selector = "smartQuotesType", SetterSelector = "setSmartQuotesType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "smartDashesType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SmartDashesType", PropertyType = typeof(UITextSmartDashesType), Selector = "smartDashesType", SetterSelector = "setSmartDashesType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "smartInsertDeleteType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "SmartInsertDeleteType", PropertyType = typeof(UITextSmartInsertDeleteType), Selector = "smartInsertDeleteType", SetterSelector = "setSmartInsertDeleteType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Copy, GetterSelector = "passwordRules", IsProperty = true, IsRequired = false, IsStatic = false, Name = "PasswordRules", PropertyType = typeof(UITextInputPasswordRules), Selector = "passwordRules", SetterSelector = "setPasswordRules:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "inlinePredictionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "InlinePredictionType", PropertyType = typeof(UITextInlinePredictionType), Selector = "inlinePredictionType", SetterSelector = "setInlinePredictionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "writingToolsBehavior", IsProperty = true, IsRequired = false, IsStatic = false, Name = "WritingToolsBehavior", PropertyType = typeof(UIWritingToolsBehavior), Selector = "writingToolsBehavior", SetterSelector = "setWritingToolsBehavior:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Assign, GetterSelector = "allowedWritingToolsResultOptions", IsProperty = true, IsRequired = false, IsStatic = false, Name = "AllowedWritingToolsResultOptions", PropertyType = typeof(UIWritingToolsResultOptions), Selector = "allowedWritingToolsResultOptions", SetterSelector = "setAllowedWritingToolsResultOptions:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "mathExpressionCompletionType", IsProperty = true, IsRequired = false, IsStatic = false, Name = "MathExpressionCompletionType", PropertyType = typeof(UITextMathExpressionCompletionType), Selector = "mathExpressionCompletionType", SetterSelector = "setMathExpressionCompletionType:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.Retain, GetterSelector = "conversationContext", IsProperty = true, IsRequired = false, IsStatic = false, Name = "ConversationContext", PropertyType = typeof(UIConversationContext), Selector = "conversationContext", SetterSelector = "setConversationContext:")]
    [SupportedOSPlatform("maccatalyst")]
    [SupportedOSPlatform("ios")]
    [SupportedOSPlatform("tvos")]
    public interface IUITextInputTraits : INativeObject, IDisposable
    {
        [BindingImpl(BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
        [OptionalMember]
        [SupportedOSPlatform("maccatalyst")]
        [SupportedOSPlatform("ios")]
        [SupportedOSPlatform("tvos")]
        virtual UITextSmartQuotesType SmartQuotesType
        {
            [Export("smartQuotesType", ArgumentSemantic.Assign)]
            get;
            [Export("setSmartQuotesType:", ArgumentSemantic.Assign)]
            set;
        }

    }
}
.NET
10.0
Information specific to net10.0
Platforms This API is only available when you target a specific platform:
iOS
10.010.110.210.311.011.111.211.311.412.012.112.212.312.413.013.113.213.313.413.513.614.014.114.214.314.414.515.015.215.416.016.116.216.417.017.2
Mac Catalyst
13.113.213.313.413.514.214.314.414.515.015.215.416.116.216.417.017.2
tvOS
10.010.110.211.011.111.211.311.412.012.112.212.312.413.013.213.313.414.014.214.314.414.515.015.215.416.016.116.417.017.2
Information specific to net10.0-ios17.2
Assembly

Microsoft.iOS , Version=18.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:

  • iOS
  • Mac Catalyst
  • tvOS

The property setter is only supported on the following platforms:

  • iOS
  • Mac Catalyst
  • tvOS
  • Built-in API
  • Package-provided API