-
com.grapecity.documents.excel
-
- EventHandler
- IAboveAverage
- IAreas
- IAuthor
- IAutoCorrect
- IAutoFilter
- IAutoMergeRangeInfo
- IBarcode
- IBorder
- IBorders
- IBuiltInDocumentPropertyCollection
- ICalcContext
- ICalculatedFields
- ICalculatedItems
- ICascadeSparkLine
- ICellCollection
- ICellColorSortField
- ICellDecoration
- ICellDecorationIcon
- ICellPadding
- ICodabar
- ICode128
- ICode39
- ICode49
- ICode93
- IColorScale
- IColorScaleCriteria
- IColorScaleCriterion
- IColorStop
- IColorStops
- IComment
- IComments
- ICommentsThreaded
- ICommentThreaded
- IConditionValue
- ICornerFold
- ICsvParser
- ICustomDocumentPropertyCollection
- ICustomView
- ICustomViews
- IDataBar
- IDataBarBorder
- IDataMatrix
- IDataOptions
- IDisplayFormat
- IDocumentProperty
- IDocumentPropertyCollection
- IEAN13
- IEAN8
- IExcelOptions
- IFilter
- IFilters
- IFont
- IFontColorSortField
- IFontOption
- IFontProvider
- IFormatColor
- IFormatCondition
- IFormatConditions
- IFormulaOptions
- IFormulaResolver
- IGraphic
- IGraphicsInfo
- IGroupInfo
- IGS1128
- IHeaderFooter
- IHPageBreak
- IHPageBreaks
- IHyperlink
- IHyperlinks
- IIcon
- IIconCriteria
- IIconCriterion
- IIconSet
- IIconSetCondition
- IIconSets
- IIconSortField
- IInterior
- IJsonSerializer
- ILabelOption
- ILabelOptions
- ILinearGradient
- IName
- INames
- INegativeBarFormat
- IOutline
- IOutlineColumn
- IPage
- IPageSetup
- IPane
- IPanes
- IPDF417
- IPDFRenderEngine
- IPivotAxis
- IPivotCache
- IPivotCaches
- IPivotCell
- IPivotField
- IPivotFields
- IPivotFilter
- IPivotFilters
- IPivotFormula
- IPivotFormulas
- IPivotItem
- IPivotItemList
- IPivotItems
- IPivotLine
- IPivotLineCells
- IPivotLines
- IPivotTable
- IPivotTables
- IPivotValueCell
- IProtectionSettings
- IQRCode
- IRange
- IRangeProvider
- IReadOnlySignatureDetails
- IRectangularGradient
- IRichText
- IScenario
- IScenarios
- ISheetTab
- ISheetTabs
- IShrinkToFitSettings
- ISignature
- ISignatureSet
- ISignatureSetup
- ISlicer
- ISlicerCache
- ISlicerCaches
- ISlicerItem
- ISlicerItems
- ISlicerPivotTables
- ISlicers
- ISort
- ISortField
- ISortFields
- ISparkAxes
- ISparkColor
- ISparkHorizontalAxis
- ISparkline
- ISparklineGroup
- ISparklineGroups
- ISparkLineObject
- ISparkPoints
- ISparkVerticalAxis
- IStyle
- IStyleCollection
- ITable
- ITableColumn
- ITableColumns
- ITableDataSource
- ITableRow
- ITableRows
- ITables
- ITableStyle
- ITableStyleCollection
- ITableStyleElement
- ITableStyleElements
- ITableStyleInfo
- ITextRun
- ITheme
- IThemeColor
- IThemeColorScheme
- IThemeFont
- IThemeFonts
- IThemeFontScheme
- ITop10
- IUniqueValues
- IValidation
- IValueSortField
- IVPageBreak
- IVPageBreaks
- IWebRequestHandler
- IWorkbook
- IWorkbookView
- IWorksheet
- IWorksheets
- IWorksheetView
- RangeFindReplace.FindReplaceImpl.FindMatch
- RangePartialClasses.FindReplaceImpl.FindMatch
-
- com.grapecity.documents.excel.drawing
- com.grapecity.documents.excel.expressions
- com.grapecity.documents.excel.forms
- com.grapecity.documents.excel.template
- com.grapecity.documents.excel.template.DataSource
(Showing Draft Content)
IValidation
Interface IValidation
public interface IValidation
Represents data validation for a worksheet range.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ValidationType type) Adds data validation to the specified range.voidadd(ValidationType type, ValidationAlertStyle alertStyle, ValidationOperator validationOperator, Object formula1, Object formula2) Adds data validation to the specified range.voiddelete()Deletes the object.voidGenerates the data validation from the json string.Gets the validation alert style.Gets the data validation error message.Gets the title of the data-validation error dialog box.Gets the value or expression associated with the conditional format or data validation.Gets the value or expression associated with the second part of a conditional format or data validation.booleanGets whether blank values are permitted by the data range validation.Gets the description of the Japanese input rules.booleanGets whether data validation displays a drop-down list that contains acceptable values.Gets the data validation input message.Gets the title of the data-validation input dialog box.Gets the operator for the conditional format or data validation.booleanGets whether the data validation error message will be displayed whenever the user enters invalid data.booleanGets whether the data validation input message is displayed whenever the user selects a cell in the data validation range.getType()Gets the data type validation for a range.booleangetValue()Gets whether all the validation criteria are met (that is, if the range contains valid data).voidsetAlertStyle(ValidationAlertStyle value) Sets the validation alert style.voidsetErrorMessage(String value) Sets the data validation error message.voidsetErrorTitle(String value) Sets the title of the data-validation error dialog box.voidsetFormula1(Object value) Sets the value or expression associated with the conditional format or data validation.voidsetFormula2(Object value) Sets the value or expression associated with the second part of a conditional format or data validation.voidsetIgnoreBlank(boolean value) Sets whether blank values are permitted by the data range validation.voidsetIMEMode(IMEModeType value) Sets the description of the Japanese input rules.voidsetInCellDropdown(boolean value) Sets whether data validation displays a drop-down list that contains acceptable values.voidsetInputMessage(String value) Sets the data validation input message.voidsetInputTitle(String value) Sets the title of the data-validation input dialog box.voidsetOperator(ValidationOperator value) Sets the operator for the conditional format or data validation.voidsetShowError(boolean value) Sets whether the data validation error message will be displayed whenever the user enters invalid data.voidsetShowInputMessage(boolean value) Sets whether the data validation input message is displayed whenever the user selects a cell in the data validation range.voidsetType(ValidationType value) Sets the data type validation for a range.toJson()Generates a json string from the data validation.
-
Method Details
-
add
Adds data validation to the specified range.- Parameters:
type- Required ValidationType. The validation type.
-
add
void add(ValidationType type, ValidationAlertStyle alertStyle, ValidationOperator validationOperator, Object formula1, Object formula2) Adds data validation to the specified range.- 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 whenOperator is Between or NotBetween (otherwise, this argument is ignored).
-
delete
void delete()Deletes the object. -
getAlertStyle
ValidationAlertStyle getAlertStyle()Gets the validation alert style. -
setAlertStyle
Sets the validation alert style. -
getErrorMessage
String getErrorMessage()Gets the data validation error message. -
setErrorMessage
Sets the data validation error message. -
getErrorTitle
String getErrorTitle()Gets the title of the data-validation error dialog box. -
setErrorTitle
Sets the title of the data-validation error dialog box. -
getFormula1
Object getFormula1()Gets the value or expression associated with the conditional format or data validation. Can be a constant value, a string value, a cell reference, or a formula. -
setFormula1
Sets the value or expression associated with the conditional format or data validation. Can be a constant value, a string value, a cell reference, or a formula. -
getFormula2
Object getFormula2()Gets the value or expression associated with the second part of a conditional format or data validation. -
setFormula2
Sets the value or expression associated with the second part of a conditional format or data validation. -
getIgnoreBlank
boolean getIgnoreBlank()Gets whether blank values are permitted by the data range validation. -
setIgnoreBlank
void setIgnoreBlank(boolean value) Sets whether blank values are permitted by the data range validation. -
getIMEMode
IMEModeType getIMEMode()Gets the description of the Japanese input rules. -
setIMEMode
Sets the description of the Japanese input rules. -
getInCellDropdown
boolean getInCellDropdown()Gets whether data validation displays a drop-down list that contains acceptable values. -
setInCellDropdown
void setInCellDropdown(boolean value) Sets whether data validation displays a drop-down list that contains acceptable values. -
getInputMessage
String getInputMessage()Gets the data validation input message. -
setInputMessage
Sets the data validation input message. -
getInputTitle
String getInputTitle()Gets the title of the data-validation input dialog box. -
setInputTitle
Sets the title of the data-validation input dialog box. -
getOperator
ValidationOperator getOperator()Gets the operator for the conditional format or data validation. -
setOperator
Sets the operator for the conditional format or data validation. -
getShowError
boolean getShowError()Gets whether the data validation error message will be displayed whenever the user enters invalid data. -
setShowError
void setShowError(boolean value) Sets whether the data validation error message will be displayed whenever the user enters invalid data. -
getShowInputMessage
boolean getShowInputMessage()Gets whether the data validation input message is displayed whenever the user selects a cell in the data validation range. -
setShowInputMessage
void setShowInputMessage(boolean value) Sets whether the data validation input message is displayed whenever the user selects a cell in the data validation range. -
getType
ValidationType getType()Gets the data type validation for a range. -
setType
Sets the data type validation for a range. -
getValue
boolean getValue()Gets whether all the validation criteria are met (that is, if the range contains valid data). -
fromJson
Generates the data validation from the json string.- Parameters:
json- the json string
-
toJson
String toJson()Generates a json string from the data validation.- Returns:
- The JSON string representing the data validation.
-