Partager via


SearchResultsBaseToolPart.CreateToolPartToggleSwitch Method (Control, String, String, String, String, String, Boolean)

Returns the toggle control used to expand or collapse a section of the tool pane, and specifies whether the control should be displayed or not.

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

Syntax

'Declaration
Protected Shared Function CreateToolPartToggleSwitch ( _
    toolPart As Control, _
    expandToolTip As String, _
    collapseToolTip As String, _
    displayText As String, _
    id As String, _
    helpTopic As String, _
    hidden As Boolean _
) As HtmlGenericControl
'Usage
Dim toolPart As Control
Dim expandToolTip As String
Dim collapseToolTip As String
Dim displayText As String
Dim id As String
Dim helpTopic As String
Dim hidden As Boolean
Dim returnValue As HtmlGenericControl

returnValue = SearchResultsBaseToolPart.CreateToolPartToggleSwitch(toolPart, _
    expandToolTip, collapseToolTip, _
    displayText, id, helpTopic, hidden)
protected static HtmlGenericControl CreateToolPartToggleSwitch(
    Control toolPart,
    string expandToolTip,
    string collapseToolTip,
    string displayText,
    string id,
    string helpTopic,
    bool hidden
)

Parameters

  • expandToolTip
    Type: System.String

    The tool tip text for the expand button.

  • collapseToolTip
    Type: System.String

    The tool tip text for the collapse button.

  • displayText
    Type: System.String

    The label for the toggle switch.

  • helpTopic
    Type: System.String

    The help topic associated with the toggle control.

  • hidden
    Type: System.Boolean

    Specifies whether the toggle control is displayed or not.

Return Value

Type: System.Web.UI.HtmlControls.HtmlGenericControl
The toggle control.

See Also

Reference

SearchResultsBaseToolPart Class

SearchResultsBaseToolPart Members

CreateToolPartToggleSwitch Overload

Microsoft.Office.Server.Search.WebControls Namespace