Skip to main content

RibbonButtonItemBuilder.ShowText(Boolean) Method

Sets the item’s text visibility.

Namespace: DevExpress.AspNetCore.Office

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

NuGet Package: DevExpress.AspNetCore.Common

Declaration

public RibbonButtonItemBuilder ShowText(
    bool value
)

Parameters

Name Type Description
value Boolean

true, to display the item text; otherwise, false.

Returns

Type Description
RibbonButtonItemBuilder

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

Remarks

Use the Text(String) property to specify the item’s text.

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