Skip to main content

RepositoryItemImageEdit.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.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(PictureStoreMode.Default)]
[DXCategory("Data")]
public PictureStoreMode PictureStoreMode { get; set; }

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.

Available values:

Name Description
Default

A pasted image is stored either as an Image object or as an array of bytes to the editor’s edit value, depending upon the type of the current edit value. If the editor’s EditValue currently stores an Image object, the newly pasted image will be stored as an Image as well. Otherwise, the new image will be stored as an array of bytes.

Image

A pasted image is stored to the editor’s edit value as an Image object.

ByteArray

A pasted image is stored to the editor’s edit value as an array of bytes.

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