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

ImageCollection<TImage, TInfo>.ImageSize Property

Gets or sets the default size for raster images rendered based on vector images. This setting is used if a control does not specify the size.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v21.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Win.Design, DevExpress.Wpf.Core

Declaration

[DXCategory("Appearance")]
public Size ImageSize { get; set; }

Property Value

Type Description
Size

The default image size.

Remarks

A DevExpress control’s ImageOptions property provides access to a DevExpress.Utils.ImageOptions object. This object specifies the image displayed in the control.

If you use a vector image, the DevExpress.Utils.ImageOptions.SvgImageSize property allows you to specify the size for the raster image that is rendered based on the vector image. This raster image is actually displayed in the control.

If the size for the raster image is not specified explicitly, the control uses the ImageSize property value. If the ImageSize property is also not specified, the default 16x16 size is used.

See Also