Back to Devexpress

RibbonItemBase.Text Property

aspnet-devexpress-dot-web-dot-ribbonitembase-32fb0ecb.md

latest2.0 KB
Original Source

RibbonItemBase.Text Property

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
StringString.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.

Note

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

See Also

Ribbon

RibbonItemBase Class

RibbonItemBase Members

DevExpress.Web Namespace