UITextViewDelegate_Extensions.ShouldInteractWithTextAttachment 方法

定义

重载

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange)

开发人员不应使用此已弃用的方法。 开发人员应改用“UITextItemInteraction”的“ShouldInteractWithTextAttachment”重载。

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange, UITextItemInteraction)

指定的 UITextView 是否应允许用户与给定文本范围内的指定 URL 交互。

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange)

开发人员不应使用此已弃用的方法。 开发人员应改用“UITextItemInteraction”的“ShouldInteractWithTextAttachment”重载。

[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 static bool ShouldInteractWithTextAttachment (this UIKit.IUITextViewDelegate This, UIKit.UITextView textView, UIKit.NSTextAttachment textAttachment, Foundation.NSRange characterRange);
static member ShouldInteractWithTextAttachment : UIKit.IUITextViewDelegate * UIKit.UITextView * UIKit.NSTextAttachment * Foundation.NSRange -> bool

参数

This
IUITextViewDelegate

此扩展方法在其上运行的实例。

textView
UITextView
textAttachment
NSTextAttachment
characterRange
NSRange

返回

属性

适用于

ShouldInteractWithTextAttachment(IUITextViewDelegate, UITextView, NSTextAttachment, NSRange, UITextItemInteraction)

指定的 UITextView 是否应允许用户与给定文本范围内的指定 URL 交互。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool ShouldInteractWithTextAttachment (this UIKit.IUITextViewDelegate This, UIKit.UITextView textView, UIKit.NSTextAttachment textAttachment, Foundation.NSRange characterRange, UIKit.UITextItemInteraction interaction);
static member ShouldInteractWithTextAttachment : UIKit.IUITextViewDelegate * UIKit.UITextView * UIKit.NSTextAttachment * Foundation.NSRange * UIKit.UITextItemInteraction -> bool

参数

This
IUITextViewDelegate

此扩展方法在其上运行的实例。

textView
UITextView

具有附件的文本视图。

textAttachment
NSTextAttachment

附件。

characterRange
NSRange

附件所附加的字符范围。

interaction
UITextItemInteraction

要检查的交互类型。

返回

属性

适用于