RibbonTrimmer.TrimPublishingGroup method

Removes the Publishing group controls in the Publish tab.

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

Syntax

'Declaration
Protected Overridable Function TrimPublishingGroup As Boolean
'Usage
Dim returnValue As Boolean

returnValue = Me.TrimPublishingGroup()
protected virtual bool TrimPublishingGroup()

Return value

Type: System.Boolean
true if all controls have been removed from the Publishing group; otherwise, false.

Remarks

This method needs to be overridden for new controls to be added to the Publishing group.

See also

Reference

RibbonTrimmer class

RibbonTrimmer members

Microsoft.SharePoint.WebControls namespace