Compartir a través de


: CmsDataFormWebPart.CreateToolPartToggleSwitch (Método) (Microsoft.SharePoint.Publishing.WebControls)

Creates the controls used to toggle between sections.

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Publishing (in microsoft.sharepoint.publishing.dll)

Sintaxis

'Declaración
Public Shared Function CreateToolPartToggleSwitch ( _
    toolPart As Control, _
    expandToolTip As String, _
    collapseToolTip As String, _
    displayText As String, _
    id As String, _
    helpTopic As String _
) As HtmlGenericControl
'Uso
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
)

Parámetros

  • toolPart
    ToolPart that the toggle switch is being created for.
  • expandToolTip
    Text for expand tooltip.
  • collapseToolTip
    Text for collapse tooltip.
  • displayText
    Display text.
  • id
    ID of the control.
  • helpTopic
    Help topic.

Valor devuelto

The toggle control.

Vea también

Referencia

CmsDataFormWebPart (Clase)
CmsDataFormWebPart (Miembros)
Microsoft.SharePoint.Publishing.WebControls (Espacio de nombres)