[]
        
(Showing Draft Content)

FarPoint.Win.Spread.RegularExpressionValidator

RegularExpressionValidator Class

Represents a special BaseDataValidator that validates whether the specifed value matches the given regular expression.

Inheritance
RegularExpressionValidator
Namespace: FarPoint.Win.Spread
Assembly: FarPoint.Win.Spread.dll
Syntax
[ToolboxBitmap(typeof(FpSpread), "RegularExpressionValidator.png")]
[TypeConverter(typeof(RegularExpressionValidator.RegularExpressionValidatorTypeConverter))]
public class RegularExpressionValidator : BaseDataValidator, ICloneable, ISerializable, IDeserializationCallback, ISerializeSupport, INamedObject
<ToolboxBitmap(GetType(FpSpread), "RegularExpressionValidator.png")>
<TypeConverter(GetType(RegularExpressionValidator.RegularExpressionValidatorTypeConverter))>
Public Class RegularExpressionValidator
    Inherits BaseDataValidator
    Implements ICloneable, ISerializable, IDeserializationCallback, ISerializeSupport, INamedObject
Remarks

This CellValidator validates whether the validated value's string representation matches a specified regular expression. This is an exact match.

Constructors

Name Description
RegularExpressionValidator()

Represents the default empty constructor.

RegularExpressionValidator(SerializationInfo, StreamingContext)

Initializes a new instance of this class.

Properties

Name Description
Expression

Gets or sets a regular expression that is matched by the specified value.

NullIsValid

Gets or sets whether the validation is always successful when the specified value is null.

RegexOptions

Gets or sets the regular expression options.

Methods

Name Description
Clone(ConditionalObject, FormulaEngine, FormulaEngine)

Creates an exact copy of the current RegularExpressionValidator.

Deserialize(XmlNodeReader)

Loads the object from XML.

GetObjectData(SerializationInfo, StreamingContext)

Gets the object data.

Serialize(XmlTextWriter)

Saves the object to XML.

Validate(ValidateActionContext)

Validates whether the specifed value matches the given regular expression.