[]
        
(Showing Draft Content)

FarPoint.Win.Spread.FocusProcess

FocusProcess Class

Represents a special ValidateActionBase that keeps the focus on the validating Cell when validation fails.

Inheritance
FocusProcess
Namespace: FarPoint.Win.Spread
Assembly: FarPoint.Win.Spread.dll
Syntax
[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
Remarks

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.

Constructors

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.

Properties

Name Description
PreventFocusLeave

Gets or sets whether to keep the focus on the validating Cell.

Methods

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 context.

GetObjectData(SerializationInfo, StreamingContext)

Gets the object data.

Serialize(XmlTextWriter)

Saves the object to XML.

See Also