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.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DefaultValue(PictureStoreMode.Default)]
[DXCategory("Data")]
public PictureStoreMode PictureStoreMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Picture |
Default | A Picture |
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 Edit |
Image | A pasted image is stored to the editor’s edit value as an Image object. |
Byte |
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.