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.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Property ShouldTakeFocusIfEmpty As Boolean
    Get
    Set
'Usage
Dim instance As SearchBoxEx
Dim value As Boolean

value = instance.ShouldTakeFocusIfEmpty

instance.ShouldTakeFocusIfEmpty = value
public bool ShouldTakeFocusIfEmpty { get; set; }

Property value

Type: System.Boolean
true if the search box Web Part receives focus; otherwise, false.

See also

Reference

SearchBoxEx class

SearchBoxEx members

Microsoft.SharePoint.Portal.WebControls namespace