C# Класс Habanero.Faces.Win.ErrorProviderWin

Provides a user interface for indicating that a control on a form has an error associated with it
Наследование: System.Windows.Forms.ErrorProvider, IErrorProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GetControl ( IControlHabanero objControl ) : Control

Описание методов

GetControl() защищенный Метод

protected GetControl ( IControlHabanero objControl ) : Control
objControl IControlHabanero
Результат System.Windows.Forms.Control

GetError() публичный Метод

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.
Результат string

GetIconAlignment() публичный Метод

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.
Результат ErrorIconAlignmentHabanero

GetIconPadding() публичный Метод

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.
Результат int

SetError() публичный Метод

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.
Результат void

SetIconAlignment() публичный Метод

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.
Результат void

SetIconPadding() публичный Метод

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.
Результат void