다음을 통해 공유


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