SearchBoxEx.TextBoxWidth Property

Gets or sets the fixed width for the query text box in the search box Web Part.

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

Syntax

'Declaration
<ResourcesAttribute("SearchBox_QueryTextWidth", "SearchBox_QueryTextBox",  _
    "SearchBox_QueryTextWidth_ToolTip")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property TextBoxWidth As Integer
    Get
    Set
'Usage
Dim instance As SearchBoxEx
Dim value As Integer

value = instance.TextBoxWidth

instance.TextBoxWidth = value
[ResourcesAttribute("SearchBox_QueryTextWidth", "SearchBox_QueryTextBox", 
    "SearchBox_QueryTextWidth_ToolTip")]
[WebPartStorageAttribute(Storage.Shared)]
public int TextBoxWidth { get; set; }

Property Value

Type: System.Int32
A 32-bit integer that specifies the width, in pixels, for the query text box.

See Also

Reference

SearchBoxEx Class

SearchBoxEx Members

Microsoft.SharePoint.Portal.WebControls Namespace