TileItemElement.ImageSize Property

Gets or sets the image size for this TileItemElement.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll


public Size ImageSize { get; set; }
Public Property ImageSize As Size

Property Value

Type Description

A Size structure that is the image size for this TileItemElement.


To set an image for a TileItemElement, use its TileItemElement.Image property. Use the ImageSize property to set a custom image size for this image. Note that by default, the TileItemElement.ImageScaleMode property equals Default. This setting prohibits scaling an element image from its default to custom size. In order to apply a custom image size, set the TileItemElement.ImageScaleMode property to the required value.

The figure below illustrates a Tile with two elements. Each one contains the same 32x32 pixels image but in different sizes - default and custom. The custom image size is set via the ImageSize property to 64x64 pixels. The TileItemElement.ImageScaleMode property equals Stretch.


See Also