Share via


INSTextElementProvider Interface

Definition

This interface represents the Objective-C protocol NSTextElementProvider.

[Foundation.Protocol(Name="NSTextElementProvider", WrapperType=typeof(AppKit.NSTextElementProviderWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="EnumerateTextElements", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDFuncArity2V2) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.INSTextLocation), typeof(AppKit.NSTextContentManagerEnumerationOptions), typeof(System.Func<AppKit.NSTextElement,System.Boolean>) }, ReturnType=typeof(AppKit.INSTextLocation), Selector="enumerateTextElementsFromLocation:options:usingBlock:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ReplaceContents", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextRange), typeof(AppKit.NSTextElement[]) }, Selector="replaceContentsInRange:withTextElements:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="Synchronize", ParameterBlockProxy=new System.Type[] { typeof(ObjCRuntime.Trampolines+NIDActionArity1V16) }, ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.Action<Foundation.NSError>) }, Selector="synchronizeToBackingStore:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetLocation", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.INSTextLocation), typeof(System.IntPtr) }, ReturnType=typeof(AppKit.INSTextLocation), Selector="locationFromLocation:withOffset:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetOffset", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.INSTextLocation), typeof(AppKit.INSTextLocation) }, ReturnType=typeof(System.IntPtr), Selector="offsetFromLocation:toLocation:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="AdjustedRange", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextRange), typeof(System.Boolean) }, ReturnType=typeof(AppKit.NSTextRange), Selector="adjustedRangeFromRange:forEditingTextSelection:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="documentRange", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentRange", PropertyType=typeof(AppKit.NSTextRange), Selector="documentRange")]
public interface INSTextElementProvider : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="NSTextElementProvider", WrapperType=typeof(AppKit.NSTextElementProviderWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="EnumerateTextElements", ParameterBlockProxy=new System.Type[] { null, null, typeof(ObjCRuntime.Trampolines+NIDFuncArity2V2) }, ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.INSTextLocation), typeof(AppKit.NSTextContentManagerEnumerationOptions), typeof(System.Func<AppKit.NSTextElement,System.Boolean>) }, ReturnType=typeof(AppKit.INSTextLocation), Selector="enumerateTextElementsFromLocation:options:usingBlock:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ReplaceContents", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextRange), typeof(AppKit.NSTextElement[]) }, Selector="replaceContentsInRange:withTextElements:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="Synchronize", ParameterBlockProxy=new System.Type[] { typeof(ObjCRuntime.Trampolines+NIDActionArity1V16) }, ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.Action<Foundation.NSError>) }, Selector="synchronizeToBackingStore:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetLocation", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.INSTextLocation), typeof(System.IntPtr) }, ReturnType=typeof(AppKit.INSTextLocation), Selector="locationFromLocation:withOffset:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetOffset", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.INSTextLocation), typeof(AppKit.INSTextLocation) }, ReturnType=typeof(System.IntPtr), Selector="offsetFromLocation:toLocation:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="AdjustedRange", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSTextRange), typeof(System.Boolean) }, ReturnType=typeof(AppKit.NSTextRange), Selector="adjustedRangeFromRange:forEditingTextSelection:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="documentRange", IsProperty=true, IsRequired=true, IsStatic=false, Name="DocumentRange", PropertyType=typeof(AppKit.NSTextRange), Selector="documentRange")>]
type INSTextElementProvider = 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.

Applies to