IUITextPasteItem IUITextPasteItem Interface

Definition

Interface for working with paste and drop text items.

[Foundation.Protocol(Name="UITextPasteItem", WrapperType=typeof(UIKit.UITextPasteItemWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUITextPasteItem : IDisposable, ObjCRuntime.INativeObject
type IUITextPasteItem = interface
    interface INativeObject
    interface IDisposable
Attributes
Implements

Properties

DefaultAttributes DefaultAttributes

Gets the default attributes for plain text paste items.

Handle Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
ItemProvider ItemProvider

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

LocalObject LocalObject

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

Methods

SetAttachmentResult(NSTextAttachment) SetAttachmentResult(NSTextAttachment)

Sets the attachement result to the specified attachment.

SetAttributedStringResult(NSAttributedString) SetAttributedStringResult(NSAttributedString)

Sets the string value of the paste item.

SetDefaultResult() SetDefaultResult()
SetNoResult() SetNoResult()

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

SetStringResult(String) SetStringResult(String)

Sets the text result.

Applies to