Skip to main content

RibbonItemBase.Text Property

Gets or sets the text content of the current ribbon item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public virtual string Text { get; set; }

Property Value

Type Default Description
String String.Empty

A string value that specifies the text content of the ribbon item.


Use the Text property to specify the current item’s text content. In addition to the text, you can specify an item’s image using the RibbonButtonItem.SmallImage and RibbonButtonItem.LargeImage properties.

If a ribbon is bound to a data source, item text can be retrieved from the data source field specified by the RibbonDataFields.TextField property.

If the Text property is set to a default value (“” or string.Empty), the caption of the item will be default. If the Text property is set to a non-default value, this value is used as the caption of this item.


The RibbonComboBoxItem.Text property allows you to customize a ribbon item caption and does not in effect for a ribbon text.

See Also