Compartilhar via


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)
Available in Sandboxed Solutions: No

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