Gets whether the element currently has the input focus.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Shadows ReadOnly Property ContainsFocus As Boolean |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As ElementControl
Dim value As Boolean
value = instance.ContainsFocus |
C# | |
---|
public virtual new bool ContainsFocus {get;} |
Property Value
Boolean value:
true if element currently has focus;
false otherwise
Remarks
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also