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

Declaration

[DXCategory("Behavior")]
[DefaultValue(PictureSizeMode.Clip)]
public PictureSizeMode SizeMode { get; set; }
<DXCategory("Behavior")>
<DefaultValue(PictureSizeMode.Clip)>
Public Property SizeMode As PictureSizeMode

Property Value

Type Default Description
PictureSizeMode

Clip

A PictureSizeMode enumeration value.

Remarks

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.

NOTE

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