windowsforms-devexpress-dot-xtraeditors-dot-tileitemelement-1c307462.md
Gets or sets whether this TileItemElement should be stretched across the entire tile.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(false)]
[DXCategory("Appearance")]
public bool StretchHorizontal { get; set; }
<DefaultValue(False)>
<DXCategory("Appearance")>
Public Property StretchHorizontal As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if this TileItemElement should be stretched across the entire tile; otherwise, false.
|
The StretchHorizontal property allows you to stretch the TileItemElement from the left to the right tile’s edge, forming a solid stripe (the element text position remains unchanged). The height of this bar is equal to the TileItemElement.Height property value. You can also colorize this stripe by using the BackColor property accessed in the TileItemElement.Appearance section.
Elements can also be stretched vertically. To do so, use the TileItemElement.StretchVertical property instead.
The figure below illustrates an example.
See Also