[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.Fields.Field

Field Class

Represnts a Field class to define a base field.

Implements
Namespace: GrapeCity.Win.Spread.InputMan.CellType.Fields
Assembly: GrapeCity.Win.PluginInputMan.dll
Syntax
public abstract class Field : INamedObject
Public MustInherit Class Field
    Implements INamedObject
Remarks

This class will implement view function for single segment. And some input behavior will exposed to user, too. This is final interface for our user. When a field is created, it will create a segment and value module for it. Then configuration will be done on the segment and the value module.

Constructors

Name Description
Field()

Initializes a new instance of the Field class.

Properties

Name Description
BackColor

Gets or sets the background color of the Field.

Focused

Gets a value indicating whether the Field has input focus.

Font

Gets or sets the font of the Field.

ForeColor

Gets or sets the foreground color of the Field.

InputStatus

Gets the current input status of the Field.

Margin

Gets or sets the space around the Field.

Name

Gets or sets the name of the object.

Padding

Gets or sets padding within the Field.

SelectionLength

Gets the length of the selection.

SelectionStart

Gets the selection start position.

Size

Gets the size of the Field.

Text

Gets text of the Field.

Methods

Name Description
CharPositionToX(int)

Converts the char position to x coordinate position.

PointContainerToField(Point)

Computes the location of the specified container point into field coordinates.

PointFieldToContainer(Point)

Computes the location of the specified field point into container coordinates.

ResetFont()

Resets the Font property to default value.

ResetForeColor()

Resets the ForeColor property to default value.

XToCharPosition(int)

Converts the x coordinate position to char position.

Events

Name Description
Enter

Occurs when the input focus enters the field.

Leave

Occurs when the input focus leaves the field.

Paint

Occurs when the field is redrawn.