Share via


IUITextPasteItem Interface

Definition

Interface for working with paste and drop text items.

[Foundation.Protocol(Name="UITextPasteItem", WrapperType=typeof(UIKit.UITextPasteItemWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetStringResult", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.String) }, Selector="setStringResult:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetAttributedStringResult", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSAttributedString) }, Selector="setAttributedStringResult:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetAttachmentResult", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.NSTextAttachment) }, Selector="setAttachmentResult:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetNoResult", Selector="setNoResult")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetDefaultResult", Selector="setDefaultResult")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="itemProvider", IsProperty=true, IsRequired=true, IsStatic=false, Name="ItemProvider", PropertyType=typeof(Foundation.NSItemProvider), Selector="itemProvider")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="localObject", IsProperty=true, IsRequired=true, IsStatic=false, Name="LocalObject", PropertyType=typeof(Foundation.NSObject), Selector="localObject")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="defaultAttributes", IsProperty=true, IsRequired=true, IsStatic=false, Name="DefaultAttributes", PropertyType=typeof(Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>), Selector="defaultAttributes")]
public interface IUITextPasteItem : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UITextPasteItem", WrapperType=typeof(UIKit.UITextPasteItemWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetStringResult", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.String) }, Selector="setStringResult:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetAttributedStringResult", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Foundation.NSAttributedString) }, Selector="setAttributedStringResult:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetAttachmentResult", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.NSTextAttachment) }, Selector="setAttachmentResult:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetNoResult", Selector="setNoResult")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetDefaultResult", Selector="setDefaultResult")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="itemProvider", IsProperty=true, IsRequired=true, IsStatic=false, Name="ItemProvider", PropertyType=typeof(Foundation.NSItemProvider), Selector="itemProvider")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="localObject", IsProperty=true, IsRequired=true, IsStatic=false, Name="LocalObject", PropertyType=typeof(Foundation.NSObject), Selector="localObject")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="defaultAttributes", IsProperty=true, IsRequired=true, IsStatic=false, Name="DefaultAttributes", PropertyType=typeof(Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>), Selector="defaultAttributes")>]
type IUITextPasteItem = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
DefaultAttributes

Gets the default attributes for plain text paste items.

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
ItemProvider

Gets the provider that provides the text data for the paste item.

LocalObject

Gets the context object, if present, that was attached to the item when it was lifted.

Methods

Name Description
SetAttachmentResult(NSTextAttachment)

Sets the attachement result to the specified attachment.

SetAttributedStringResult(NSAttributedString)

Sets the string value of the paste item.

SetDefaultResult()
SetNoResult()

Causes the text value to not be provided by its provider.

SetStringResult(String)

Sets the text result.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to