UITextField.AllowsEditingTextAttributes 属性

定义

输入或粘贴的文本可以更改内容的属性。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool AllowsEditingTextAttributes { [Foundation.Export("allowsEditingTextAttributes")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setAllowsEditingTextAttributes:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.AllowsEditingTextAttributes : bool with get, set

属性值

默认值为 false

属性

注解

如果 true为 ,则用户可以编辑样式属性和粘贴到 的 UITextField 带样式的文本将保留特征。 如果 false为 ,则文本样式只是一项编程功能。

适用于