Back to Devexpress

RibbonButtonItem Class

aspnet-devexpress-dot-web-da9020f8.md

latest11.4 KB
Original Source

RibbonButtonItem Class

A ribbon item used to display the button functionality.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class RibbonButtonItem :
    RibbonItemBase
vb
Public Class RibbonButtonItem
    Inherits RibbonItemBase

Remarks

The RibbonButtonItem object is a ribbon item that implements the button functionality. You can use the RibbonButtonItem.NavigateUrl property to specify the URL to which the client web browser navigates whenever the current button is clicked. The item size can be specified using the RibbonItemBase.Size property. The RibbonButtonItem.SmallImage and RibbonButtonItem.LargeImage properties allow you to provide the item images.

When the RibbonButtonItem button is clicked, the client-side CommandExecuted event is raised. You can use the item parameter to determine the clicked item.

Additionally, the RibbonButtonItem class serves as the base class which implements the common functionality for ribbon buttons. This functionality is inherited by the RibbonButtonItem class’ descendants which are the RibbonColorButtonItem, RibbonDropDownButtonItem, RibbonOptionButtonItem, and RibbonToggleButtonItem.

aspx
<dx:RibbonButtonItem Name="Cut" Text="Cut">
     <SmallImage IconID="edit_cut_16x16">
     </SmallImage>
</dx:RibbonButtonItem>
<dx:RibbonButtonItem Name="Copy" Text="Copy">
     <SmallImage IconID="actions_merge_16x16">
     </SmallImage>
</dx:RibbonButtonItem>
<dx:RibbonButtonItem Name="Clear" Text="Clear">
     <SmallImage IconID="actions_clear_16x16">
     </SmallImage>
</dx:RibbonButtonItem>

To learn more about ribbon item types, see the Item Types topic.

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Show 84 items

Object StateManager CollectionItem RibbonItemBase RibbonButtonItem HERibbonCommandBase

RibbonColorButtonItemBase

RibbonDropDownButtonItem

RibbonGalleryDropDownItem

RibbonToggleButtonItem

HECopySelectionRibbonCommand

HECustomDialogRibbonCommand

HEOutdentRibbonCommand

HEPasteFromWordRibbonCommand

HEPasteSelectionRibbonCommand

HEPrintRibbonCommand

HERedoRibbonCommand

HEInsertTableRibbonCommand

HEInsertTableRowAboveRibbonCommand

HEInsertTableRowBelowRibbonCommand

HEInsertUnorderedListRibbonCommand

HEInsertVideoDialogRibbonCommand

HEInsertYouTubeVideoDialogRibbonCommand

HEItalicRibbonCommand

RibbonColorButtonItem

RibbonDropDownToggleButtonItem

HERibbonToggleCommandBase

HESelectAllRibbonCommand

HEAlignmentCenterRibbonCommand

HEAlignmentJustifyRibbonCommand

HEAlignmentLeftRibbonCommand

HEAlignmentRightRibbonCommand

HEBackColorRibbonCommand

HEBoldRibbonCommand

HECheckSpellingRibbonCommand

HECutSelectionRibbonCommand

HEExportToOdtDropDownRibbonCommand

HEExportToPdfDropDownRibbonCommand

HEExportToRtfDropDownRibbonCommand

HEExportToTxtDropDownRibbonCommand

HEFindAndReplaceDialogRibbonCommand

HEFontColorRibbonCommand

HEFullscreenRibbonCommand

HEIndentRibbonCommand

HEInsertAudioDialogRibbonCommand

HEInsertFlashDialogRibbonCommand

HEInsertImageRibbonCommand

HEInsertLinkDialogRibbonCommand

HEInsertOrderedListRibbonCommand

HEInsertPlaceholderDialogRibbonCommand

HEInsertTableByGridHighlightingRibbonCommand

HEInsertTableColumnToLeftRibbonCommand

HEInsertTableColumnToRightRibbonCommand

HEInsertTableDropDownRibbonCommand

HERibbonDropDownCommandBase

HESplitTableCellHorizontallyRibbonCommand

HESplitTableCellVerticallyRibbonCommand

HEStrikeoutRibbonCommand

HESubscriptRibbonCommand

HESuperscriptRibbonCommand

HETableCellPropertiesRibbonCommand

HETableColumnPropertiesRibbonCommand

HETablePropertiesRibbonCommand

HETableRowPropertiesRibbonCommand

HEUnderlineRibbonCommand

HEUndoRibbonCommand

HEUnlinkRibbonCommand

RibbonOptionButtonItem

BootstrapRibbonButtonItem

BootstrapRibbonColorButtonItem

BootstrapRibbonDropDownButtonItem

BootstrapRibbonDropDownToggleButtonItem

BootstrapRibbonGalleryDropDownItem

BootstrapRibbonOptionButtonItem

BootstrapRibbonToggleButtonItem

HEDeleteTableColumnRibbonCommand

HEDeleteTableRibbonCommand

HEDeleteTableRowRibbonCommand

HEExportToDocxDropDownRibbonCommand

HEExportToMhtDropDownRibbonCommand

HEMergeTableCellDownRibbonCommand

HEMergeTableCellRightRibbonCommand

HERemoveFormatRibbonCommand

HERibbonColorCommandBase

See Also

RibbonButtonItem Members

Ribbon

Item Types

DevExpress.Web Namespace