Share via


RibbonTrimmer.TrimPublishTab Method

Calls TrimPublishingGroup and TrimWorkflowGroup.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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.

See Also

Reference

RibbonTrimmer Class

RibbonTrimmer Members

Microsoft.SharePoint.WebControls Namespace