RepositoryItemPictureEdit.PictureAlignment Property

Gets or sets the alignment of the image within the picture editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll


public ContentAlignment PictureAlignment { get; set; }
Public Property PictureAlignment As ContentAlignment

Property Value

Type Default Description


A ContentAlignment enumeration value specifying the image alignment.


Use the PictureAlignment property to specify the picture editor's image alignment. The picture editor's image can be assigned via the PictureEdit.Image or PictureEdit.SvgImage property.

By default, the PictureAlignment property is set to MiddleCenter and the image is displayed vertically and horizontally centered within the editor.

Note: this property setting affects image stretch effects caused by RepositoryItemPictureEdit.SizeMode settings.

Changing the value of this property at runtime raises the RepositoryItem.PropertiesChanged event.

See Also