TextInfo.IsReadOnly 属性

定义

获取一个值,该值指示当前 TextInfo 对象是否为只读。Gets a value indicating whether the current TextInfo object is read-only.

public:
 property bool IsReadOnly { bool get(); };
public bool IsReadOnly { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public bool IsReadOnly { get; }
member this.IsReadOnly : bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.IsReadOnly : bool
Public ReadOnly Property IsReadOnly As Boolean

属性值

Boolean

如果当前 TextInfo 对象为只读,则为 true;否则为 falsetrue if the current TextInfo object is read-only; otherwise, false.

属性

注解

如果 IsReadOnly 属性为 true ,则应用程序无法更改当前对象的任何属性 TextInfoIf the IsReadOnly property is true, the application cannot change any of the properties of the current TextInfo object.

适用于