RepositoryItemImageEdit.SizeMode Property

Gets or sets a value specifying how the image is displayed within the image editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll


public PictureSizeMode SizeMode { get; set; }
Public Property SizeMode As PictureSizeMode

Property Value

Type Default Description


A PictureSizeMode enumeration value.


Use the SizeMode property to control how the image is displayed within the editor's dropdown. It can be displayed as is, stretched to fit the dropdown window or stretched proportionally.

The effect of the size mode can depend upon the RepositoryItemImageEdit.PictureAlignment property setting.

Changing the SizeMode value at runtime raises the RepositoryItem.PropertiesChanged event.


Stretching an image (especially one in bitmap format) can reduce image quality. Metafiles (lists of graphical instructions for drawing images at run time) are better suited for stretching than bitmaps.

See Also