TextBoxBase.IsReadOnlyCaretVisible TextBoxBase.IsReadOnlyCaretVisible TextBoxBase.IsReadOnlyCaretVisible TextBoxBase.IsReadOnlyCaretVisible Property

定义

获取或设置一个值,该值指示只读文本框是否显示插入符号。Gets or sets a value that indicates whether a read-only text box displays a caret.

public:
 property bool IsReadOnlyCaretVisible { bool get(); void set(bool value); };
public bool IsReadOnlyCaretVisible { get; set; }
member this.IsReadOnlyCaretVisible : bool with get, set
Public Property IsReadOnlyCaretVisible As Boolean

属性值

如果只读文本框显示插入符号,则为 true;否则为 falsetrue if a read-only text box displays a caret; otherwise, false. 默认值为 falseThe default is false.

注解

IsReadOnlytrue时, 用户仍可以选择和复制文本。When IsReadOnly is true, a user can still select and copy text. 如果还将true属性设置为, 则当文本框具有键盘焦点时, 文本框中将显示一个插入符号。 IsReadOnlyCaretVisibleIf the IsReadOnlyCaretVisible property is also set to true, a caret will appear in the text box when the text box has keyboard focus. IsReadOnlyfalse时,IsReadOnlyCaretVisible属性不起作用。When IsReadOnly is false, the IsReadOnlyCaretVisible property has no effect.

适用于