UITextViewDelegate.ShouldInteractWithTextAttachment 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ShouldInteractWithTextAttachment(UITextView, NSTextAttachment, NSRange) |
开发人员不应使用此已弃用的方法。 开发人员应改用“UITextItemInteraction”的“ShouldInteractWithTextAttachment”重载。 |
ShouldInteractWithTextAttachment(UITextView, NSTextAttachment, NSRange, UITextItemInteraction) |
指定的 UITextView 是否应允许用户与给定文本范围中的指定文本附件进行交互。 |
ShouldInteractWithTextAttachment(UITextView, NSTextAttachment, NSRange)
开发人员不应使用此已弃用的方法。 开发人员应改用“UITextItemInteraction”的“ShouldInteractWithTextAttachment”重载。
[Foundation.Export("textView:shouldInteractWithTextAttachment:inRange:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use the 'ShouldInteractWithTextAttachment' overload that takes 'UITextItemInteraction' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldInteractWithTextAttachment (UIKit.UITextView textView, UIKit.NSTextAttachment textAttachment, Foundation.NSRange characterRange);
abstract member ShouldInteractWithTextAttachment : UIKit.UITextView * UIKit.NSTextAttachment * Foundation.NSRange -> bool
override this.ShouldInteractWithTextAttachment : UIKit.UITextView * UIKit.NSTextAttachment * Foundation.NSRange -> bool
参数
- textView
- UITextView
- textAttachment
- NSTextAttachment
- characterRange
- NSRange
返回
- 属性
适用于
ShouldInteractWithTextAttachment(UITextView, NSTextAttachment, NSRange, UITextItemInteraction)
指定的 UITextView 是否应允许用户与给定文本范围中的指定文本附件进行交互。
[Foundation.Export("textView:shouldInteractWithTextAttachment:inRange:interaction:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldInteractWithTextAttachment (UIKit.UITextView textView, UIKit.NSTextAttachment textAttachment, Foundation.NSRange characterRange, UIKit.UITextItemInteraction interaction);
abstract member ShouldInteractWithTextAttachment : UIKit.UITextView * UIKit.NSTextAttachment * Foundation.NSRange * UIKit.UITextItemInteraction -> bool
override this.ShouldInteractWithTextAttachment : UIKit.UITextView * UIKit.NSTextAttachment * Foundation.NSRange * UIKit.UITextItemInteraction -> bool
参数
- textView
- UITextView
包含附件的文本视图。
- textAttachment
- NSTextAttachment
附件。
- characterRange
- NSRange
附加附件的字符范围。
- interaction
- UITextItemInteraction
要检查的交互类型。
返回
- 属性