Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / ValidationProvider Class
Members


In This Topic
    ValidationProvider Class
    In This Topic
    Adds customizable text validation for compatible input components.
    Syntax
    'Declaration
     
    <ProvidePropertyAttribute("ValidationExpression", System.ComponentModel.IComponent)>
    <DesignerAttribute("Xceed.Validation.Design.ValidationProviderDesigner,Xceed.Validation.v1.3.Design,Version=1.3.25455.6282,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
    <ToolboxBitmapAttribute(Xceed.Validation.ValidationProvider)>
    <DesignerCategoryAttribute("Component")>
    Public Class ValidationProvider 
       Inherits System.ComponentModel.Component
    'Usage
     
    Dim instance As ValidationProvider
    [ProvideProperty("ValidationExpression", System.ComponentModel.IComponent)]
    [Designer("Xceed.Validation.Design.ValidationProviderDesigner,Xceed.Validation.v1.3.Design,Version=1.3.25455.6282,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
    [ToolboxBitmap(Xceed.Validation.ValidationProvider)]
    [DesignerCategory("Component")]
    public class ValidationProvider : System.ComponentModel.Component 
    Remarks

    ValidationProvider is the main class of the Input Validator control. It implements System.ComponentModel.IExtenderProvider and System.ComponentModel.ISupportInitialize to add the ValidationExpression property to compatible components at design and runtime.

    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             Xceed.Validation.ValidationProvider

    Public Constructors
     NameDescription
    Public ConstructorInitializes a new instance of the ValidationProvider class.  
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from System.ComponentModel.Component)
    Public PropertyGets or sets the default message text used in error messages.  
    Public PropertyGets or sets the icon that will be displayed when a validation error occured.  
    Public Property (Inherited from System.ComponentModel.Component)
    Top
    Protected Properties
     NameDescription
    Protected Property (Inherited from System.ComponentModel.Component)
    Protected Property (Inherited from System.ComponentModel.Component)
    Protected Property (Inherited from System.ComponentModel.Component)
    Protected PropertyGets a collection of property names whose values have been explicitly set as well as the corresponding values.  
    Top
    Public Methods
     NameDescription
    Public MethodDetermines if the provider contains the expression passed as parameter.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded. Overridden. Clean up any resources being used.  
    Public MethodGets a value indicating where the error icon should be placed in relation to the control.  
    Public MethodReturns the amount of extra space to leave next to the error icon.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodGets the validation error that is displayed next to the input component passed as a parameter.  
    Public MethodRetrieves the validation expression associated with the component.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodSets the location where the error icon should be placed in relation to the control.  
    Public MethodSets the amount of extra space to leave between the specified control and the error icon.  
    Public MethodSets a validation error to be displayed next to an input component, overriding all validation messages previously set by the validation provider.  
    Public MethodAssociates a validation expression with an input component.  
    Public Method (Inherited from System.ComponentModel.Component)
    Public MethodOverloaded. Validates the component and all of its child components, but excludes specified types of components.  
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from System.ComponentModel.Component)
    Protected MethodRetrieves the value of the specified property in the Properties collection.  
    Protected Method (Inherited from System.ComponentModel.Component)
    Protected MethodRetrieves a boolean value indicating whether the specified property has been explicitly set.  
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Protected MethodRemoves the specified property from the Properties collection.  
    Top
    Public Events
     NameDescription
    Public Event (Inherited from System.ComponentModel.Component)
    Top
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also