Share via


INSTextInputTraits Interface

Definition

This interface represents the Objective-C protocol NSTextInputTraits.

[Foundation.Protocol(Name="NSTextInputTraits", WrapperType=typeof(AppKit.NSTextInputTraitsWrapper))]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="autocorrectionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="AutocorrectionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="autocorrectionType", SetterSelector="setAutocorrectionType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="spellCheckingType", IsProperty=true, IsRequired=false, IsStatic=false, Name="SpellCheckingType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="spellCheckingType", SetterSelector="setSpellCheckingType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="grammarCheckingType", IsProperty=true, IsRequired=false, IsStatic=false, Name="GrammarCheckingType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="grammarCheckingType", SetterSelector="setGrammarCheckingType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="smartQuotesType", IsProperty=true, IsRequired=false, IsStatic=false, Name="SmartQuotesType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="smartQuotesType", SetterSelector="setSmartQuotesType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="smartDashesType", IsProperty=true, IsRequired=false, IsStatic=false, Name="SmartDashesType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="smartDashesType", SetterSelector="setSmartDashesType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="smartInsertDeleteType", IsProperty=true, IsRequired=false, IsStatic=false, Name="SmartInsertDeleteType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="smartInsertDeleteType", SetterSelector="setSmartInsertDeleteType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="textReplacementType", IsProperty=true, IsRequired=false, IsStatic=false, Name="TextReplacementType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="textReplacementType", SetterSelector="setTextReplacementType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="dataDetectionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="DataDetectionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="dataDetectionType", SetterSelector="setDataDetectionType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="linkDetectionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="LinkDetectionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="linkDetectionType", SetterSelector="setLinkDetectionType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="textCompletionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="TextCompletionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="textCompletionType", SetterSelector="setTextCompletionType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="inlinePredictionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="InlinePredictionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="inlinePredictionType", SetterSelector="setInlinePredictionType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mathExpressionCompletionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MathExpressionCompletionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="mathExpressionCompletionType", SetterSelector="setMathExpressionCompletionType:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="writingToolsBehavior", IsProperty=true, IsRequired=false, IsStatic=false, Name="WritingToolsBehavior", PropertyType=typeof(AppKit.NSWritingToolsBehavior), Selector="writingToolsBehavior", SetterSelector="setWritingToolsBehavior:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="allowedWritingToolsResultOptions", IsProperty=true, IsRequired=false, IsStatic=false, Name="AllowedWritingToolsResultOptions", PropertyType=typeof(AppKit.NSWritingToolsResultOptions), Selector="allowedWritingToolsResultOptions", SetterSelector="setAllowedWritingToolsResultOptions:")]
public interface INSTextInputTraits : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="NSTextInputTraits", WrapperType=typeof(AppKit.NSTextInputTraitsWrapper))>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="autocorrectionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="AutocorrectionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="autocorrectionType", SetterSelector="setAutocorrectionType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="spellCheckingType", IsProperty=true, IsRequired=false, IsStatic=false, Name="SpellCheckingType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="spellCheckingType", SetterSelector="setSpellCheckingType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="grammarCheckingType", IsProperty=true, IsRequired=false, IsStatic=false, Name="GrammarCheckingType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="grammarCheckingType", SetterSelector="setGrammarCheckingType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="smartQuotesType", IsProperty=true, IsRequired=false, IsStatic=false, Name="SmartQuotesType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="smartQuotesType", SetterSelector="setSmartQuotesType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="smartDashesType", IsProperty=true, IsRequired=false, IsStatic=false, Name="SmartDashesType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="smartDashesType", SetterSelector="setSmartDashesType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="smartInsertDeleteType", IsProperty=true, IsRequired=false, IsStatic=false, Name="SmartInsertDeleteType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="smartInsertDeleteType", SetterSelector="setSmartInsertDeleteType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="textReplacementType", IsProperty=true, IsRequired=false, IsStatic=false, Name="TextReplacementType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="textReplacementType", SetterSelector="setTextReplacementType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="dataDetectionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="DataDetectionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="dataDetectionType", SetterSelector="setDataDetectionType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="linkDetectionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="LinkDetectionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="linkDetectionType", SetterSelector="setLinkDetectionType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="textCompletionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="TextCompletionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="textCompletionType", SetterSelector="setTextCompletionType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="inlinePredictionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="InlinePredictionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="inlinePredictionType", SetterSelector="setInlinePredictionType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="mathExpressionCompletionType", IsProperty=true, IsRequired=false, IsStatic=false, Name="MathExpressionCompletionType", PropertyType=typeof(AppKit.NSTextInputTraitType), Selector="mathExpressionCompletionType", SetterSelector="setMathExpressionCompletionType:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="writingToolsBehavior", IsProperty=true, IsRequired=false, IsStatic=false, Name="WritingToolsBehavior", PropertyType=typeof(AppKit.NSWritingToolsBehavior), Selector="writingToolsBehavior", SetterSelector="setWritingToolsBehavior:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="allowedWritingToolsResultOptions", IsProperty=true, IsRequired=false, IsStatic=false, Name="AllowedWritingToolsResultOptions", PropertyType=typeof(AppKit.NSWritingToolsResultOptions), Selector="allowedWritingToolsResultOptions", SetterSelector="setAllowedWritingToolsResultOptions:")>]
type INSTextInputTraits = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
AllowedWritingToolsResultOptions
AutocorrectionType
DataDetectionType
GrammarCheckingType
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
InlinePredictionType
LinkDetectionType
MathExpressionCompletionType
SmartDashesType
SmartInsertDeleteType
SmartQuotesType
SpellCheckingType
TextCompletionType
TextReplacementType
WritingToolsBehavior

Extension Methods

Name Description
GetAllowedWritingToolsResultOptions(INSTextInputTraits)
GetAutocorrectionType(INSTextInputTraits)
GetDataDetectionType(INSTextInputTraits)
GetGrammarCheckingType(INSTextInputTraits)
GetInlinePredictionType(INSTextInputTraits)
GetLinkDetectionType(INSTextInputTraits)
GetMathExpressionCompletionType(INSTextInputTraits)
GetSmartDashesType(INSTextInputTraits)
GetSmartInsertDeleteType(INSTextInputTraits)
GetSmartQuotesType(INSTextInputTraits)
GetSpellCheckingType(INSTextInputTraits)
GetTextCompletionType(INSTextInputTraits)
GetTextReplacementType(INSTextInputTraits)
GetWritingToolsBehavior(INSTextInputTraits)
SetAllowedWritingToolsResultOptions(INSTextInputTraits, NSWritingToolsResultOptions)
SetAutocorrectionType(INSTextInputTraits, NSTextInputTraitType)
SetDataDetectionType(INSTextInputTraits, NSTextInputTraitType)
SetGrammarCheckingType(INSTextInputTraits, NSTextInputTraitType)
SetInlinePredictionType(INSTextInputTraits, NSTextInputTraitType)
SetLinkDetectionType(INSTextInputTraits, NSTextInputTraitType)
SetMathExpressionCompletionType(INSTextInputTraits, NSTextInputTraitType)
SetSmartDashesType(INSTextInputTraits, NSTextInputTraitType)
SetSmartInsertDeleteType(INSTextInputTraits, NSTextInputTraitType)
SetSmartQuotesType(INSTextInputTraits, NSTextInputTraitType)
SetSpellCheckingType(INSTextInputTraits, NSTextInputTraitType)
SetTextCompletionType(INSTextInputTraits, NSTextInputTraitType)
SetTextReplacementType(INSTextInputTraits, NSTextInputTraitType)
SetWritingToolsBehavior(INSTextInputTraits, NSWritingToolsBehavior)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to