Compartir a través de


: SearchBox.CompactMode (Propiedad) (Microsoft.SharePoint.Portal.WebControls)

Este miembro o clase no se admite. Cuando actualice una aplicación o escriba aplicaciones nuevas que hagan uso de este miembro o clase, use en su lugar el miembro o clase nuevo. For Enterprise Search de Microsoft Office SharePoint Server 2007, use the Microsoft.SharePoint.PortalWebControls.SearchBoxEx instead. Gets or sets a flag that determines the display mode for this Web Part.

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

'Declaración
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public Property CompactMode As Boolean
'Uso
Dim instance As SearchBox
Dim value As Boolean

value = instance.CompactMode

instance.CompactMode = value
[WebPartStorageAttribute(Storage.Shared)] 
[BrowsableAttribute(false)] 
public bool CompactMode { get; set; }

Valor de propiedad

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

Comentarios

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

Vea también

Referencia

SearchBox (Clase)
SearchBox (Miembros)
Microsoft.SharePoint.Portal.WebControls (Espacio de nombres)