Share via


Ribbon.TrimById Method (String, String)

Locates a tab by identifier and visibility context and trims it for the current page.

Namespace:  Microsoft.Web.CommandUI
Assembly:  Microsoft.Web.CommandUI (in Microsoft.Web.CommandUI.dll)

Syntax

'Declaration
Public Sub TrimById ( _
    trimmedId As String, _
    visibilityContext As String _
)
'Usage
Dim instance As Ribbon
Dim trimmedId As String
Dim visibilityContext As String

instance.TrimById(trimmedId, visibilityContext)
public void TrimById(
    string trimmedId,
    string visibilityContext
)

Parameters

  • trimmedId
    Type: System.String

    A string that identifies the tab.

  • visibilityContext
    Type: System.String

    A string representation of the visibility context of the tab.

Remarks

This method can be used for all controls on the Server ribbon.

See Also

Reference

Ribbon Class

Ribbon Members

TrimById Overload

Microsoft.Web.CommandUI Namespace