RibbonButton Class

Applies to v2.

Represents a ribbon button.

Inheritance Hierarchy

System.Object
  Microsoft.WebMatrix.Extensibility.RibbonItem
    Microsoft.WebMatrix.Extensibility.RibbonButton
      Microsoft.WebMatrix.Extensibility.RibbonSplitButton
      Microsoft.WebMatrix.Extensibility.RibbonSplitButtonGallery
      Microsoft.WebMatrix.Extensibility.RibbonToggleButton

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Public Class RibbonButton _
    Inherits RibbonItem
'Usage
Dim instance As RibbonButton
public class RibbonButton : RibbonItem
public ref class RibbonButton : public RibbonItem
type RibbonButton =  
    class 
        inherit RibbonItem 
    end
public class RibbonButton extends RibbonItem

The RibbonButton type exposes the following members.

Constructors

  Name Description
Public method RibbonButton(String, ICommandId, Object, Bitmap, Bitmap) Initializes a new instance of the RibbonButton class.
Public method RibbonButton(String, ICommandId, Object, ImageSource, ImageSource) Initializes a new instance of the RibbonButton class.
Public method RibbonButton(String, ICommand, Object, Bitmap, Bitmap) Initializes a new instance of the RibbonButton class.
Public method RibbonButton(String, ICommand, Object, ImageSource, ImageSource) Initializes a new instance of the RibbonButton class.
Protected method RibbonButton(String, ICommand, ICommandId, Object, ImageSource, ImageSource) Initializes a new instance of the RibbonButton class.

Top

Properties

  Name Description
Public property Command Gets or sets the command to invoke when the button is pressed.
Public property CommandId Gets or sets the command ID to invoke when the button is pressed.
Public property CommandParameter Gets or sets the command parameter to pass to the command or CommandId.
Public property Label Gets a label for the item. (Inherited from RibbonItem.)
Public property LargeImage Gets or sets a 32x32 image for the button.
Public property SmallImage Gets or sets a 16x16 image for the button.

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.)

Top

Thread Safety

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

See Also

Reference

Microsoft.WebMatrix.Extensibility Namespace