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.StringA string that identifies the tab.
visibilityContext
Type: System.StringA string representation of the visibility context of the tab.
Remarks
This method can be used for all controls on the Server ribbon.