RibbonTrimmer class

Removes the Publishing group and Workflow group from the Publish tab if they do not contain any elements. Also removes the Publish tab if all controls have been removed from the Publishing and Workflow groups.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.WebControls.RibbonTrimmer

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Public Class RibbonTrimmer
'Usage
Dim instance As RibbonTrimmer
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public class RibbonTrimmer

Remarks

The RibbonTrimmer API is used by the SPPageStateControl class. The RibbonTrimmer methods are not intended to be called directly. If you add custom controls to the Publish tab, you can override this class to ensure they appear on the page.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

RibbonTrimmer members

Microsoft.SharePoint.WebControls namespace