Back to Devexpress

XRPictureBox.ImageAlignment Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrpicturebox-1870fcbb.md

latest3.0 KB
Original Source

XRPictureBox.ImageAlignment Property

Specifies the alignment of a displayed image in relation to the XRPictureBox control’s boundaries.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(ImageAlignment.Default)]
[SRCategory(ReportStringId.CatBehavior)]
public ImageAlignment ImageAlignment { get; set; }
vb
<SRCategory(ReportStringId.CatBehavior)>
<DefaultValue(ImageAlignment.Default)>
Public Property ImageAlignment As ImageAlignment

Property Value

TypeDefaultDescription
ImageAlignmentDefault

A ImageAlignment enumeration value.

|

Available values:

NameDescription
Default

The default image alignment is used.

| | TopLeft |

An image is aligned to the top left corner of a control.

| | TopCenter |

An image is aligned to the top side of a control.

| | TopRight |

An image is aligned to the top right corner of a control.

| | MiddleLeft |

An image is aligned to the left side of a control.

| | MiddleCenter |

An image is aligned to the middle of a control.

| | MiddleRight |

An image is aligned to the right side of a control.

| | BottomLeft |

An image is aligned to the bottom left corner of a control.

| | BottomCenter |

An image is aligned to the bottom side of a control.

| | BottomRight |

An image is aligned to the bottom right corner of a control.

|

Remarks

This property has effect only if an XRPictureBox control’s XRPictureBox.Sizing is set to ImageSizeMode.Normal, ImageSizeMode.Squeeze or ImageSizeMode.ZoomImage. You do not have to set an image alignment when Sizing is set to any other value (ImageSizeMode.StretchImage, ImageSizeMode.AutoSize or ImageSizeMode.Tile).

See Also

XRPictureBox Class

XRPictureBox Members

DevExpress.XtraReports.UI Namespace