Share via


SearchBox.CompactMode property

This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. For Enterprise Search in Microsoft Office SharePoint Server 2007, use the SearchBoxEx instead. Gets or sets a flag that determines the display mode for this Web Part.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Property CompactMode As Boolean
    Get
    Set
'Usage
Dim instance As SearchBox
Dim value As Boolean

value = instance.CompactMode

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

Property value

Type: System.Boolean
true indicates that the Web Part is displayed in compact mode; otherwise, false. The default value for this property is false.

Remarks

The CompactMode property is read/write. Compact mode displays the search box with only a text input field and a Go button.

See also

Reference

SearchBox class

SearchBox members

Microsoft.SharePoint.Portal.WebControls namespace