public class RangeValidator extends BaseValidator implements com.aspose.ms.System.ICloneable
Checks whether the value of an input control is within a specified range of values.
[C#] Pdf pdf1 = new Pdf(); Aspose.Pdf.Generator.Section Section1 = pdf1.Sections.Add(); FormField textBox = new FormField(); textBox.FormFieldType = FormFieldType.Text; textBox.FieldName = "AText"; textBox.FormWidth = 80; textBox.FormHeight = 20; RangeValidator validator = new RangeValidator(); validator.MinimumValue = "a"; validator.MaximumValue = "db"; validator.ErrorMessage = "Value must be between 'a' and 'db'"; textBox.Validators.Add(validator); Section1.Paragraphs.Add(textBox); pdf1.Save(...);
Constructor and Description |
---|
RangeValidator() |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clones a new
RangeValidator object. |
String |
getMaximumValue()
Gets or sets the maximum value of the validation range.
|
String |
getMinimumValue()
Gets or sets the minimum value of the validation range.
|
void |
setMaximumValue(String value) |
void |
setMinimumValue(String value) |
getErrorMessage, setErrorMessage
public String getMinimumValue()
Gets or sets the minimum value of the validation range.
public void setMinimumValue(String value)
public String getMaximumValue()
Gets or sets the maximum value of the validation range.
public void setMaximumValue(String value)
public Object deepClone()
Clones a new RangeValidator
object. This method clones only the format but not contents of the cell.
deepClone
in interface com.aspose.ms.System.ICloneable
deepClone
in class BaseValidator
RangeValidator
object.Copyright © 2016 Aspose. All Rights Reserved.