Back to Devexpress

TileItemElement.Text Property

windowsforms-devexpress-dot-xtraeditors-dot-tileitemelement.md

latest3.7 KB
Original Source

TileItemElement.Text Property

Gets or sets a text content for the current TileItemElement.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public string Text { get; set; }
vb
<DefaultValue(Nothing)>
<DXCategory("Appearance")>
<XtraSerializableProperty>
Public Property Text As String

Property Value

TypeDefaultDescription
Stringnull

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 define the tile item frame animation. In this case, use the TileItemFrame.Elements property to access the collection of frame elements.

See Also

Image

TextAlignment

ImageAlignment

TileItem.Elements

TileItemFrame.Elements

ImageToTextAlignment

TextVisible

Tile Item Structure

TileItemElement Class

TileItemElement Members

DevExpress.XtraEditors Namespace