Back to Devexpress

RepositoryItemImageEdit.PictureStoreMode Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemimageedit-edd19b02.md

latest3.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
PictureStoreModeDefault

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

|

Available values:

NameDescription
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

Image

RepositoryItemImageEdit Class

RepositoryItemImageEdit Members

DevExpress.XtraEditors.Repository Namespace