This documentation is archived and is not being maintained.

ErrorProvider.GetIconAlignment Method

Gets a value indicating where the error icon should be placed in relation to the control.

[Visual Basic]
Public Function GetIconAlignment( _
   ByVal control As Control _
) As ErrorIconAlignment
public ErrorIconAlignment GetIconAlignment(
 Control control
public: ErrorIconAlignment GetIconAlignment(
 Control* control
public function GetIconAlignment(
   control : Control
) : ErrorIconAlignment;


The control to get the icon location for.

Return Value

One of the ErrorIconAlignment values. The default icon alignment is MiddleRight.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ErrorProvider Class | ErrorProvider Members | System.Windows.Forms Namespace | SetIconPadding | SetIconAlignment