TextBoxBase.IsSelectionActive TextBoxBase.IsSelectionActive TextBoxBase.IsSelectionActive TextBoxBase.IsSelectionActive Property

定义

获取指示文本框是否具有焦点和选择文本的值。Gets a value that indicates whether the text box has focus and selected text.

public:
 property bool IsSelectionActive { bool get(); };
public bool IsSelectionActive { get; }
member this.IsSelectionActive : bool
Public ReadOnly Property IsSelectionActive As Boolean

属性值

如果文本框具有焦点和所选文本,则为 true;否则为 falsetrue if the text box has focus and selected text; otherwise, false.

已注册的默认值为 falseThe registered default is false. 有关什么可以影响值的详细信息,请参阅 Dependency Property Value Precedence(依赖项属性值优先级)For more information about what can influence the value, see Dependency Property Value Precedence.

注解

依赖项属性信息Dependency Property Information

标识符字段Identifier field IsSelectionActiveProperty
元数据属性设置为trueMetadata properties set to true NoneNone

适用于