'Declaration
Public Function AddValidation( _
ByVal () As CellRange, _
ByVal As GrapeCity.Spreadsheet.DataValidationType, _
ByVal As GrapeCity.Spreadsheet.DataValidationOperator, _
ByVal As GrapeCity.Spreadsheet.DataValidationErrorStyle, _
ByVal As String, _
Optional ByVal As String, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As String, _
Optional ByVal As String, _
Optional ByVal As Boolean, _
Optional ByVal As String, _
Optional ByVal As String _
) As GrapeCity.Spreadsheet.DataValidation
'使用法
Dim instance As SheetView
Dim cellRanges() As CellRange
Dim type As GrapeCity.Spreadsheet.DataValidationType
Dim operator As GrapeCity.Spreadsheet.DataValidationOperator
Dim errorStyle As GrapeCity.Spreadsheet.DataValidationErrorStyle
Dim formula1 As String
Dim formula2 As String
Dim ignoreBlank As Boolean
Dim inCellDropdown As Boolean
Dim showInput As Boolean
Dim inputTitle As String
Dim inputMessage As String
Dim showError As Boolean
Dim errorTitle As String
Dim errorMessage As String
Dim value As GrapeCity.Spreadsheet.DataValidation
value = instance.AddValidation(cellRanges, type, operator, errorStyle, formula1, formula2, ignoreBlank, inCellDropdown, showInput, inputTitle, inputMessage, showError, errorTitle, errorMessage)
public GrapeCity.Spreadsheet.DataValidation AddValidation(
CellRange[] ,
GrapeCity.Spreadsheet.DataValidationType ,
GrapeCity.Spreadsheet.DataValidationOperator ,
GrapeCity.Spreadsheet.DataValidationErrorStyle ,
string ,
string ,
bool ,
bool ,
bool ,
string ,
string ,
bool ,
string ,
string
)