ErrorProvider
Wisej.Web.ErrorProvider
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Provides a user interface for indicating that a control on a form has an error associated with it.
Constructors
ErrorProvider()
Initializes a new instance of the ErrorProvider class and initializes the default settings for BlinkRate, BlinkStyle, and the Icon.
ErrorProvider(containerControl)
Initializes a new instance of the ErrorProvider class attached to a ContainerControl.
ErrorProvider(container)
Initializes a new instance of the ErrorProvider class attached to an IContainer implementation.
Properties
AllowHtml
Boolean: Returns or sets a value indicating that the control can display HTML in the ErrorMessage property. (Default: False
)
BlinkAnimation
ErrorAnimationType: Returns or sets a value indicating the type of animation to perform when the error icon blinks.. (Default: Blink
)
BlinkRate
Int32: Returns or sets the rate at which the error icon flashes. (Default: 250
)
Throws:
ArgumentOutOfRangeException The value is less than zero.
BlinkStyle
ErrorBlinkStyle: Returns or sets a value indicating when the error icon flashes. (Default: BlinkIfDifferentError
)
ContainerControl
ContainerControl: Returns or sets the parent control for this ErrorProvider. (Default: null
)
DataMember
String: Returns or sets the list within a data source to monitor for errors. (Default: ""
)
DataSource
Object: Returns or sets the data source that the ErrorProvider monitors for errors. (Default: null
)
HasErrors
Boolean: Returns true when the error provider contains at least one error.
Icon
Image: Returns or sets the Image that is displayed next to a control when an error description string has been set for the control.
Throws:
ArgumentNullException The assigned value of the Image is null.
IconAlignment
ErrorIconAlignment: Returns or sets the default ErrorIconAlignment. (Default: MiddleRight
)
IconPadding
Int32: Returns or sets the default ErrorIconAlignment. (Default: 0
)
IconSource
String: Returns or sets the source URL of the image that is displayed next to a control when an error description string has been set for the control.
Throws:
ArgumentNullException The assigned value of the Image is null.
RightToLeft
Boolean: Returns or sets a value that indicates whether the component is used in a locale that supports right-to-left fonts. (Default: False
)
Tag
Object: Returns or sets an object that contains data about the component. (Default: null
)
Methods
BindToDataAndErrors(dataSource, dataMember)
Sets the DataSource and DataMember properties.
CanExtend(extendee)
Returns a value indicating whether a control can be extended.
Returns: Boolean. true if the control can be extended; otherwise, false.This property will be true if the object is a Control and is not a Form or ToolBar.
Clear()
Clears all error providers.
GetError(control)
Returns the current error description string for the specified control.
Returns: String. The error description string for the specified control.
Throws:
ArgumentNullException control is null.
GetIconAlignment(control)
Returns a value indicating where the error icon should be placed in relation to the control.
Returns: ErrorIconAlignment. One of the ErrorIconAlignment values. The default icon alignment is MiddleRight.
Throws:
ArgumentNullException control is null.
GetIconPadding(control)
Returns the amount of extra space to leave next to the error icon.
Returns: Int32. The number of pixels to leave between the icon and the control.
Throws:
ArgumentNullException control is null.
SetError(control, value)
Sets the error description string for the specified control.
Throws:
ArgumentNullException control is null.
SetIconAlignment(control, value)
Sets the location where the error icon should be placed in relation to the control.
Throws:
ArgumentNullException control is null.
SetIconPadding(control, value)
Sets the amount of extra space to leave between the specified control and the error icon.
Throws:
ArgumentNullException control is null.
UpdateBinding()
Updated the bindings.
Events
RightToLeftChanged
EventHandler Fired when the RightToLeft property changes value.
Implements
Exposes a common api implemented by components that can collect errors in relation to a Control.
All wisej components implement this interface.
Allows an object to serialize itself.
Last updated