TileItemElement.ImageScaleMode Property

Gets or sets the way a glyph is stretched within the current TileItemElement.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
[DefaultValue(TileItemImageScaleMode.Default)]
[DXCategory("Appearance")]
public TileItemImageScaleMode ImageScaleMode { get; set; }
<Browsable(False)>
<DefaultValue(TileItemImageScaleMode.Default)>
<DXCategory("Appearance")>
Public Property ImageScaleMode As TileItemImageScaleMode

Property Value

Type Default Description
TileItemImageScaleMode

Default

A TileItemImageScaleMode enumerator value that specifies the way a glyph is stretched within the current TileItemElement.

Remarks

A TileItemElement can have text content (specified via the TileItemElement.Text property) and a glyph (see the TileItemElement.Image). The ImageScaleMode property value specifies the way a glyph is stretched inside its parent element. The TileItemElement.ImageAlignment property sets this icon's alignment mode.

This property has a higher priority than the TileControl.ItemImageScaleMode property that specifies a common stretch mode for all TileItems within a tile control.

A tile item can use multiple elements to build its content. If so, to customize the glyph of the first element within the TileItem.Elements collection, you can either use the ImageScaleMode or the TileItem.ImageScaleMode property.

See Also