Tab
A newer version of this page is available. Switch to the current version.

RibbonItemBase.Text Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue("")]
public virtual string Text { get; set; }
<DefaultValue("")>
Public Overridable Property Text As String

Property Value

Type Default Description
String

String.Empty

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

Remarks

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.

See Also