[]
Represents a special ValidateActionBase that keeps the focus on the validating Cell when validation fails.
[ToolboxBitmap(typeof(FpSpread), "FocusProcess.png")]
[TypeConverter(typeof(FocusProcess._a))]
public class FocusProcess : ValidateActionBase, ICloneable, ISerializable, ISerializeSupport, INamedObject
<ToolboxBitmap(GetType(FpSpread), "FocusProcess.png")>
<TypeConverter(GetType(FocusProcess._a))>
Public Class FocusProcess
Inherits ValidateActionBase
Implements ICloneable, ISerializable, ISerializeSupport, INamedObject
This action is similar to setting cancel to true in the CellValidating event. If you change the DoActionReason, the behavior of this action is special. For example, if you add EndEdit and CancelEdit, the validating cell cannot end edit mode even if you do not leave the current cell.
This action only takes effect when setting the PreventFocusLeave property value to true.
Name | Description |
---|---|
FocusProcess() | Initializes a new instance of the FocusProcess class. |
FocusProcess(bool) | Initializes a new instance of the FocusProcess class. |
FocusProcess(SerializationInfo, StreamingContext) | Initializes a new instance of this class. |
Name | Description |
---|---|
PreventFocusLeave | Gets or sets whether to keep the focus on the validating Cell. |
Name | Description |
---|---|
Clone() | Creates an exact copy of the current FocusProcess. |
Deserialize(XmlNodeReader) | Loads the object from XML. |
DoAction(ValidateActionContext) | Executes the current FocusProcess using the |
GetObjectData(SerializationInfo, StreamingContext) | Gets the object data. |
Serialize(XmlTextWriter) | Saves the object to XML. |