XlsValidationWrapper Constructor (XlsRange, XlsValidation, Boolean)
|
Initializes a new instance of the XlsValidationWrapper class.
If the provided XlsValidation object is null, it creates a new validation for the specified range and sets it up based on the read-only flag.
Namespace:
Spire.Xls.Core.Spreadsheet
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public XlsValidationWrapper(
XlsRange range,
XlsValidation wrap,
bool readOnly
)
Public Sub New (
range As XlsRange,
wrap As XlsValidation,
readOnly As Boolean
)
public:
XlsValidationWrapper(
XlsRange^ range,
XlsValidation^ wrap,
bool readOnly
)
new :
range : XlsRange *
wrap : XlsValidation *
readOnly : bool -> XlsValidationWrapper
Parameters
-
range
-
Type:
Spire.Xls.Core.Spreadsheet
XlsRange
The XlsRange to which the validation will be applied.
-
wrap
-
Type:
Spire.Xls.Core.Spreadsheet
XlsValidation
The XlsValidation object to wrap. If null, a new validation will be created.
-
readOnly
-
Type:
System
Boolean
A flag indicating whether the validation should be read-only.
Return Value
Type:
An instance of XlsValidationWrapper.
See Also