RepositoryItemPictureEdit.PictureStoreMode Property

Gets or sets how the editor stores the image pasted via the editor's context menu.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Data")]
[DefaultValue(PictureStoreMode.Default)]
public PictureStoreMode PictureStoreMode { get; set; }
<DXCategory("Data")>
<DefaultValue(PictureStoreMode.Default)>
Public Property PictureStoreMode As PictureStoreMode

Property Value

Type Default Description
PictureStoreMode

Default

A PictureStoreMode value representing how an image loaded via the editor's context menu is stored in the edit value.

Remarks

Set the PictureStoreMode property to PictureStoreMode.Image to always store the pasted image to the edit value as a Image object.

If the PictureStoreMode property is set to PictureStoreMode.Default the image is stored as either an Image or as an array of bytes, and this depends on the type of the editor's EditValue property. If the EditValue currently stores an Image object or it is set to null, the newly pasted image will be stored as an Image object. Otherwise, the new image will be stored as an array of bytes.

See Also