Add Method (IValidation)

Spread.Services Documentation
Add Method (IValidation)
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C#
C#

GrapeCity.Documents.Spread Namespace > IValidation Interface : Add Method

Required ValidationType. The validation type.
Optional Object. The validation alert style.
Optional Object. The data validation operator.
Optional Object. The first part of the data validation equation.
Optional Object. The second part of the data validation when Operator is Between or NotBetween (otherwise, this argument is ignored).
Adds data validation to the specified range.
Syntax

- C#

    void Add(
       ValidationType type,
       ValidationAlertStyle alertStyle,
       ValidationOperator validationOperator,
       System.object formula1,
       System.object formula2
    )

#### Parameters

type
  Required ValidationType. The validation type.
alertStyle
  Optional Object. The validation alert style.
validationOperator
  Optional Object. The data validation operator.
formula1
  Optional Object. The first part of the data validation equation.
formula2
  Optional Object. The second part of the data validation when Operator is Between or NotBetween (otherwise, this argument is ignored).

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

#### Reference

IValidation Interface
IValidation Members

Copyright © GrapeCity, inc. All rights reserved.

Send Feedback