UITextViewDelegate_Extensions.ShouldInteractWithTextAttachment 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
要檢查的互動類型。
傳回
- 屬性