Partilhar via


RibbonTrimmer.TrimPublishingGroup Method

Removes the Publishing group controls in the Publish tab.

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

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