RibbonTrimmer.Trim Method

Trims the Server ribbon based on the current list’s settings.

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

Syntax

'Declaration
Public Sub Trim
'Usage
Dim instance As RibbonTrimmer

instance.Trim()
public void Trim()

Remarks

By default, this trims the Publishing and Workflow groups in the Publish tab. This method should be overridden if you add custom controls to the Publish tab.

See Also

Reference

RibbonTrimmer Class

RibbonTrimmer Members

Microsoft.SharePoint.WebControls Namespace