SearchBoxEx.ShouldTakeFocusIfEmpty Property
Gets or sets a Boolean value indicating whether the search box Web Part receives focus if it is empty.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public Property ShouldTakeFocusIfEmpty As Boolean
Get
Set
'Usage
Dim instance As SearchBoxEx
Dim value As Boolean
value = instance.ShouldTakeFocusIfEmpty
instance.ShouldTakeFocusIfEmpty = value
[WebPartStorageAttribute(Storage.Shared)]
[BrowsableAttribute(false)]
public bool ShouldTakeFocusIfEmpty { get; set; }
Property Value
Type: System.Boolean
true if the search box Web Part receives focus; otherwise, false.