A newer version of this page is available. Switch to the current version.

BaseEdit.ErrorIconAlignment Property

Gets or sets the alignment of the error icon displayed within the editor, when an error is associated with the editor.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll


public ErrorIconAlignment ErrorIconAlignment { get; set; }

Property Value

Type Description

The ErrorIconAlignment value that specifies the error icon's alignment.


If an error is associated with an editor via the BaseEdit.ErrorText property, an error icon is displayed at the position specified by the ErrorIconAlignment property.

The default value of the ErrorIconAlignment property is determined by the static BaseEdit.DefaultErrorIconAlignment property (by default, it is set to MiddleLeft). If you want to change the default position of error icons for all editors, you can modify the static BaseEdit.DefaultErrorIconAlignment property in the form's constructor before the call to the InitializeComponent method.

The BaseEdit.ErrorIcon property allows you to specify an error icon for individual editors. The following image shows an editor displaying an error icon at the right edge:


See Also