Partilhar via


SearchResultsBaseToolPart.ApplyStateField Method

Sets the appropriate expand or collapse state of the control.

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

Syntax

'Declaration
Protected Sub ApplyStateField ( _
    sectionContainerControl As Control, _
    id As String, _
    isExpandedByDefault As Boolean _
)
'Usage
Dim sectionContainerControl As Control
Dim id As String
Dim isExpandedByDefault As Boolean

Me.ApplyStateField(sectionContainerControl, _
    id, isExpandedByDefault)
protected void ApplyStateField(
    Control sectionContainerControl,
    string id,
    bool isExpandedByDefault
)

Parameters

  • isExpandedByDefault
    Type: System.Boolean

    Specifies whether the control is expanded or collapsed by default.

See Also

Reference

SearchResultsBaseToolPart Class

SearchResultsBaseToolPart Members

Microsoft.Office.Server.Search.WebControls Namespace