DXErrorProvider.GetIconAlignment(Control) Method
Returns the alignment of the error icon associated with the specified control.
Namespace: DevExpress.XtraEditors.DXErrorProvider
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[DefaultValue(ErrorIconAlignment.MiddleLeft)]
public ErrorIconAlignment GetIconAlignment(
Control control
)
Parameters
Name | Type | Description |
---|---|---|
control | Control | A control whose error icon alignment is returned. |
Returns
Type | Default | Description |
---|---|---|
ErrorIconAlignment | MiddleLeft | 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 the methods of the DXErrorProvider class. When an error is assigned, an error icon is displayed within the editor. Its position can be adjusted via the DXErrorProvider.SetIconAlignment method or the BaseEdit.ErrorIconAlignment property.
The GetIconAlignment method allows you to return the current error icon alignment.
Note
The GetIconAlignment method is only in effect for BaseEdit control descendants