Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonButtonItemBuilder.Text(String) Method

Sets the text content of the current item.

Namespace: DevExpress.AspNetCore.Office

Assembly: DevExpress.AspNetCore.Common.v24.2.dll

NuGet Package: DevExpress.AspNetCore.Common

#Declaration

C#
public RibbonButtonItemBuilder Text(
    string value
)

#Parameters

Name Type Description
value String

The item text.

#Returns

Type Description
RibbonButtonItemBuilder

An object that can be used to further configure the ribbon item.

#Remarks

Use the ShowText(Boolean) property to specify whether the item’s text is displayed.

For a full example, see Ribbon Customization demo.

Rich Text Edit - Ribbon Items

@(Html.DevExpress().RichEdit("richEdit")
    .Ribbon(ribbon => ribbon
        .Visible(true)
        .ActiveTabIndex(1)
        .Tabs(tabs => {
            tabs.Clear();
            tabs.AddHomeTab()
            tabs.Add()
                .Title("Email")
                .Items(items => {
                    items.AddButton()
                        .Text("Insert Email Signature")
                        .CommandName("insertEmailSignature")
                        .ShowText(true)
                        .Icon("user");
                    items.AddButton()
                        .Text("Send Email")
                        .CommandName("sendEmail")
                        .ShowText(true)
                        .Icon("email");
                    items.AddPrintDocumentItem().BeginGroup(true);
                    items.AddDownloadDocumentItem();
                });
        })
    )
    .OnCustomCommandExecuted("onCustomCommandExecuted")
)
See Also