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
Afficher le fichier Open project: Chillisoft/habanero.faces Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
GetControl ( IControlHabanero objControl ) : Control

Method Details

GetControl() protected méthode

protected GetControl ( IControlHabanero objControl ) : Control
objControl IControlHabanero
Résultat System.Windows.Forms.Control

GetError() public méthode

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.
Résultat string

GetIconAlignment() public méthode

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.
Résultat ErrorIconAlignmentHabanero

GetIconPadding() public méthode

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.
Résultat int

SetError() public méthode

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.
Résultat void

SetIconAlignment() public méthode

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.
Résultat void

SetIconPadding() public méthode

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.
Résultat void