Skip to main content
A newer version of this page is available. .

TileItemElement.Text Property

Gets or sets a text content for the current TileItemElement.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DefaultValue(null)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public string Text { get; set; }

Property Value

Type Default Description
String *null*

A String value that is the current TileItemElement‘s text content.

Remarks

Every TileItem can have an infinite count of TileItemElements. A TileItemElement object is a content unit that has a glyph (see the TileItemElement.Image topic) and text (specified via the Text property). You can customize both text and glyph alignment using the TileItemElement.TextAlignment and TileItemElement.ImageAlignment properties respectively. A collection of elements, specifying a tile item’s content, can be accessed via the TileItem.Elements property.

An element’s text and glyph can be grouped together into a single block via the TileItemElement.ImageToTextAlignment property. See the Tile Item Structure topic to learn more.

The same properties are used to specify text and glyphs for tile item frames that participate in the tile item frame animation. In this case, use the TileItemFrame.Elements property to access the collection of frame elements.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also