UITextView.DataDetectorTypes 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此属性包含一个值,该值确定文档中哪些文本可以转换为可单击链接。
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIDataDetectorType DataDetectorTypes { [Foundation.Export("dataDetectorTypes")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setDataDetectorTypes:")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.DataDetectorTypes : UIKit.UIDataDetectorType with get, set
属性值
默认值为 E:UIKit.UIDataDetectorTypes.None
- 属性
注解
将此值设置为 E:UIKit.UIDataDetectorTypes.None 会将相应的文本 (电话号码、URL、日历事件和地址) 转换为可单击链接。 单击时,操作系统将打开相应的应用程序来处理该类型的链接。
适用于
另请参阅
- AllowsEditingTextAttributes
- AttributedText
- Editable
- Font
- Text
- TextAlignment
- <xref:UIKit.UITextView.TextContainerInsert>
- TextColor
- TypingAttributes