Interface IXLDataValidation
public interface IXLDataValidation
- Extension Methods
Properties
AllowedValues
XLAllowedValues AllowedValues { get; set; }
Property Value
Date
XLDateCriteria Date { get; }
Property Value
Decimal
XLDecimalCriteria Decimal { get; }
Property Value
ErrorMessage
string ErrorMessage { get; set; }
Property Value
ErrorStyle
XLErrorStyle ErrorStyle { get; set; }
Property Value
ErrorTitle
string ErrorTitle { get; set; }
Property Value
IgnoreBlanks
bool IgnoreBlanks { get; set; }
Property Value
InCellDropdown
bool InCellDropdown { get; set; }
Property Value
InputMessage
string InputMessage { get; set; }
Property Value
InputTitle
string InputTitle { get; set; }
Property Value
MaxValue
string MaxValue { get; set; }
Property Value
MinValue
string MinValue { get; set; }
Property Value
Operator
XLOperator Operator { get; set; }
Property Value
Ranges
A collection of ranges the data validation rule applies too.
IEnumerable<IXLRange> Ranges { get; }
Property Value
ShowErrorMessage
bool ShowErrorMessage { get; set; }
Property Value
ShowInputMessage
bool ShowInputMessage { get; set; }
Property Value
TextLength
XLTextLengthCriteria TextLength { get; }
Property Value
Time
XLTimeCriteria Time { get; }
Property Value
Value
string Value { get; set; }
Property Value
WholeNumber
XLWholeNumberCriteria WholeNumber { get; }
Property Value
Methods
AddRange(IXLRange)
Add a range to the collection of ranges this rule applies to. If the specified range does not belong to the worksheet of the data validation rule it is transferred to the target worksheet.
void AddRange(IXLRange range)
Parameters
rangeIXLRangeA range to add.
AddRanges(IEnumerable<IXLRange>)
Add a collection of ranges to the collection of ranges this rule applies to. Ranges that do not belong to the worksheet of the data validation rule are transferred to the target worksheet.
void AddRanges(IEnumerable<IXLRange> ranges)
Parameters
rangesIEnumerable<IXLRange>Ranges to add.
Clear()
void Clear()
ClearRanges()
Detach data validation rule of all ranges it applies to.
void ClearRanges()
Custom(string)
void Custom(string customValidation)
Parameters
customValidationstring
IsDirty()
bool IsDirty()
Returns
List(IXLRange)
void List(IXLRange range)
Parameters
rangeIXLRange
List(IXLRange, bool)
void List(IXLRange range, bool inCellDropdown)
Parameters
List(string)
void List(string list)
Parameters
liststring
List(string, bool)
void List(string list, bool inCellDropdown)
Parameters
RemoveRange(IXLRange)
Remove the specified range from the collection of range this rule applies to.
bool RemoveRange(IXLRange range)
Parameters
rangeIXLRangeA range to remove.