IUITextPasteItem 接口

定义

用于处理粘贴和放置文本项的界面。

[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
属性
实现

属性

DefaultAttributes

获取纯文本粘贴项的默认属性。

Handle

处理指向非托管对象表示形式的 (指针) 。

(继承自 INativeObject)
ItemProvider

获取为粘贴项提供文本数据的提供程序。

LocalObject

获取上下文对象(如果存在),该对象在提升项时附加到该项。

方法

SetAttachmentResult(NSTextAttachment)

将附加结果设置为指定的附件。

SetAttributedStringResult(NSAttributedString)

设置粘贴项的字符串值。

SetDefaultResult()

用于处理粘贴和放置文本项的界面。

SetNoResult()

导致文本值不由其提供程序提供。

SetStringResult(String)

设置文本结果。

适用于