共用方式為


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

處理 unmanaged 物件標記法) (指標。

(繼承來源 INativeObject)
ItemProvider

取得提供貼上專案的文字資料的提供者。

LocalObject

取得內容物件,如果存在,則附加至專案在隨即解除時。

方法

SetAttachmentResult(NSTextAttachment)

將附加結果設定為指定的附件。

SetAttributedStringResult(NSAttributedString)

設定貼上專案的字串值。

SetDefaultResult()

使用貼上和置放文字專案的介面。

SetNoResult()

使文字值不會由其提供者提供。

SetStringResult(String)

設定文字結果。

適用於