Export (0) Print
Expand All

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.

System.Object
  Microsoft.SharePoint.WebControls.RibbonTrimmer

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

[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public class RibbonTrimmer

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.

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

Community Additions

Show:
© 2014 Microsoft