Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / ValidationProvider Class / Validate Method / Validate(Object,Boolean,Boolean) Method
The component to validate.
true if validation is also performed by traversing all children components. false will validate only the passed component.
true if validation includes hidden components. false will validate only visible components. Components are considered to be visible even if they are not currently within the client area of their container. Hidden components are components that are collapsed or whose Visible property is set to false.


In This Topic
    Validate(Object,Boolean,Boolean) Method
    In This Topic
    Validates the component, specifying whether child components and visible components should be validated.
    Syntax
    'Declaration
     
    Public Overloads Function Validate( _
       ByVal component As Object, _
       ByVal validateChildren As Boolean, _
       ByVal validateHidden As Boolean _
    ) As Boolean
    'Usage
     
    Dim instance As ValidationProvider
    Dim component As Object
    Dim validateChildren As Boolean
    Dim validateHidden As Boolean
    Dim value As Boolean
     
    value = instance.Validate(component, validateChildren, validateHidden)
    public bool Validate( 
       object component,
       bool validateChildren,
       bool validateHidden
    )

    Parameters

    component
    The component to validate.
    validateChildren
    true if validation is also performed by traversing all children components. false will validate only the passed component.
    validateHidden
    true if validation includes hidden components. false will validate only visible components. Components are considered to be visible even if they are not currently within the client area of their container. Hidden components are components that are collapsed or whose Visible property is set to false.

    Return Value

    Returns true if components are valid; false otherwise.
    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