C# Class Habanero.Faces.Win.ErrorProviderWin

Provides a user interface for indicating that a control on a form has an error associated with it
Inheritance: System.Windows.Forms.ErrorProvider, IErrorProvider
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
GetError ( IControlHabanero objControl ) : string

Returns the current error description string for the specified control.

GetIconAlignment ( IControlHabanero objControl ) : ErrorIconAlignmentHabanero

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

GetIconPadding ( IControlHabanero objControl ) : int

Returns the amount of extra space to leave next to the error icon.

SetError ( IControlHabanero objControl, string strValue ) : void

Sets the error description string for the specified control.

SetIconAlignment ( IControlHabanero objControl, ErrorIconAlignmentHabanero enmValue ) : void

Sets the location where the error icon should be placed in relation to the control.

SetIconPadding ( IControlHabanero objControl, int intPadding ) : void

Sets the amount of extra space to leave between the specified control and the error icon.

Protected Methods

Method Description
GetControl ( IControlHabanero objControl ) : Control

Method Details

GetControl() protected method

protected GetControl ( IControlHabanero objControl ) : Control
objControl IControlHabanero
return System.Windows.Forms.Control

GetError() public method

Returns the current error description string for the specified control.
control is null.
public GetError ( IControlHabanero objControl ) : string
objControl IControlHabanero The item to get the error description string for.
return string

GetIconAlignment() public method

Gets a value indicating where the error icon should be placed in relation to the control.
control is null.
public GetIconAlignment ( IControlHabanero objControl ) : ErrorIconAlignmentHabanero
objControl IControlHabanero The control to get the icon location for.
return ErrorIconAlignmentHabanero

GetIconPadding() public method

Returns the amount of extra space to leave next to the error icon.
control is null.
public GetIconPadding ( IControlHabanero objControl ) : int
objControl IControlHabanero The control to get the padding for.
return int

SetError() public method

Sets the error description string for the specified control.
control is null.
public SetError ( IControlHabanero objControl, string strValue ) : void
objControl IControlHabanero The control to set the error description string for.
strValue string The error description string.
return void

SetIconAlignment() public method

Sets the location where the error icon should be placed in relation to the control.
control is null.
public SetIconAlignment ( IControlHabanero objControl, ErrorIconAlignmentHabanero enmValue ) : void
objControl IControlHabanero The control to set the icon location for.
enmValue ErrorIconAlignmentHabanero One of the values.
return void

SetIconPadding() public method

Sets the amount of extra space to leave between the specified control and the error icon.
control is null.
public SetIconPadding ( IControlHabanero objControl, int intPadding ) : void
objControl IControlHabanero The control to set the padding for.
intPadding int The number of pixels to add between the icon and the control.
return void