CmsDataFormWebPart.CreateToolPartToggleSwitch Method
Creates the controls used to toggle between sections.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Function CreateToolPartToggleSwitch ( _
toolPart As Control, _
expandToolTip As String, _
collapseToolTip As String, _
displayText As String, _
id As String, _
helpTopic As String _
) 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 returnValue As HtmlGenericControl
returnValue = CmsDataFormWebPart.CreateToolPartToggleSwitch(toolPart, _
expandToolTip, collapseToolTip, _
displayText, id, helpTopic)
public static HtmlGenericControl CreateToolPartToggleSwitch(
Control toolPart,
string expandToolTip,
string collapseToolTip,
string displayText,
string id,
string helpTopic
)
Parameters
- toolPart
Type: System.Web.UI.Control
ToolPart that the toggle switch is being created for.
- expandToolTip
Type: System.String
Text for expand tooltip.
- collapseToolTip
Type: System.String
Text for collapse tooltip.
- displayText
Type: System.String
Display text.
- id
Type: System.String
ID of the control.
- helpTopic
Type: System.String
Help topic.
Return Value
Type: System.Web.UI.HtmlControls.HtmlGenericControl
The toggle control.