RibbonTrimmer.TrimPublishTab method
Calls TrimPublishingGroup and TrimWorkflowGroup.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Overridable Sub TrimPublishTab
'Usage
Me.TrimPublishTab()
protected virtual void TrimPublishTab()
Remarks
If all elements are removed in the Publishing and Workflow groups, this method removes the Publish tab. This method should be overridden if custom controls are added to the Publish tab.