Skip to main content
A newer version of this page is available. .

ImageLocation Enum

Enumerates possible locations for an image within a control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.1.dll

Declaration

public enum ImageLocation

Members

Name Description
Default

The same as MiddleLeft.

TopCenter

The image is vertically aligned at the top, and horizontally aligned in the center.

TopLeft

The image is vertically aligned at the top, and horizontally aligned on the left.

TopRight

The image is vertically aligned at the top, and horizontally aligned on the right.

MiddleCenter

The image is centered vertically and horizontally. The control’s text is not displayed in this mode.

MiddleLeft

The image is vertically centered, and horizontally aligned on the left.

MiddleRight

The image is vertically centered, and horizontally aligned on the right.

BottomCenter

The image is vertically aligned at the bottom, and horizontally aligned in the center.

BottomLeft

The image is vertically aligned at the bottom, and horizontally aligned on the left.

BottomRight

The image is vertically aligned at the bottom, and horizontally aligned on the right.

Related API Members

The following properties accept/return ImageLocation values:

The following code snippets (auto-collected from DevExpress Examples) contain references to the ImageLocation enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also