Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXErrorProvider.SetIconAlignment(Control, ErrorIconAlignment) Method

Specifies the alignment of an error icon for a control.

Namespace: DevExpress.XtraEditors.DXErrorProvider

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void SetIconAlignment(
    Control control,
    ErrorIconAlignment alignment
)

#Parameters

Name Type Description
control Control

The control for which the error icon alignment is specified.

alignment ErrorIconAlignment

A ErrorIconAlignment value that specifies the alignment of the control’s error icon.

#Remarks

Errors can be assigned to editors via their BaseEdit.ErrorText properties and methods of the DXErrorProvider class. When an error is assigned, an error icon is displayed within the editor. Its position can be specified using the SetIconAlignment method or the BaseEdit.ErrorImageOptions property:

DXErrorProvider_ErrorIconAlignment_Right

To return the current error icon alignment, the DXErrorProvider.GetIconAlignment method can be used.

Note

The SetIconAlignment method is only in effect for BaseEdit control descendants

See Also