aspnet-devexpress-dot-web-dot-ribbonitembase-32fb0ecb.md
Gets or sets the text content of the current ribbon item.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public virtual string Text { get; set; }
<DefaultValue("")>
Public Overridable Property Text As String
| 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.
Note
The RibbonComboBoxItem.Text property allows you to customize a ribbon item caption and does not in effect for a ribbon text.
See Also