Spread Windows Forms 12.0 Product Documentation
DoActionReason Property (ValidateActionBase)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ValidateActionBase Class : DoActionReason Property
Gets or sets the reasons that cause the action to execute.
Public Property DoActionReason As ValidateReasons
Dim instance As ValidateActionBase
Dim value As ValidateReasons
instance.DoActionReason = value
value = instance.DoActionReason
public ValidateReasons DoActionReason {get; set;}
Type a value in cell 1,1 to see the validation.
//Type a value equal to or less than 10 to see the red line
FarPoint.Win.Spread.LineNotify linen = new FarPoint.Win.Spread.LineNotify();
linen.LineColor = Color.Red;
linen.DoActionReason = FarPoint.Win.Spread.ValidateReasons.EndEdit;
FarPoint.Win.Spread.CompareCellValidator compare = new FarPoint.Win.Spread.CompareCellValidator();
compare.ComparedOperator = FarPoint.Win.Spread.ValidateComparisonOperator.GreaterThan;
compare.Row = 0;
compare.Column = 0;
fpSpread1.Sheets[0].AddValidators(new FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), compare);
fpSpread1.Sheets[0].Cells[0, 0].Value = 10;
'Type a value equal to Or less than 10 to see the red line
Dim linen As New FarPoint.Win.Spread.LineNotify()
linen.LineColor = Color.Red
linen.DoActionReason = FarPoint.Win.Spread.ValidateReasons.EndEdit
Dim compare As New FarPoint.Win.Spread.CompareCellValidator()
compare.ComparedOperator = FarPoint.Win.Spread.ValidateComparisonOperator.GreaterThan
compare.Row = 0
compare.Column = 0
FpSpread1.Sheets(0).AddValidators(New FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), compare)
FpSpread1.Sheets(0).Cells(0, 0).Value = 10
See Also


ValidateActionBase Class
ValidateActionBase Members