Partilhar via


RibbonTrimmer Members

Include Protected Members
Include Inherited Members

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.

The RibbonTrimmer type exposes the following members.

Constructors

  Name Description
Public method RibbonTrimmer Initializes a new instance of the RibbonTrimmer class.

Top

Properties

  Name Description
Public property CurrentList Returns the current context list of the request.
Public property Ribbon Gets the SPRibbon object that this object trims.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Trim Trims the Server ribbon based on the current list’s settings.
Protected method TrimPublishingGroup Removes the Publishing group controls in the Publish tab.
Protected method TrimPublishTab Calls TrimPublishingGroup and TrimWorkflowGroup.
Protected method TrimWorkflowGroup Removes the Workflow group controls in the Publish tab.

Top

Fields

  Name Description
Public fieldStatic member PublishTabTrimmingVisibilityContext Defines the visibility context of the RibbonTrimmer control. This is set to PublishTabTrimmingVisibilityContext.

Top

See Also

Reference

RibbonTrimmer Class

Microsoft.SharePoint.WebControls Namespace