TEXTFIELD

Summary

Stores characteristics of the Text Field.

Syntax

typedef struct TEXTFIELD 
{ 
   L_UINT uStructSize; 
   RECT rcBounds; 
   RECT rcFilledAreaBounds; 
   RECT rcSpaceBounds[2]; 
   L_BOOL bIsFilled; 
   L_UINT uFieldType; 
} TEXTFIELD, * pTEXTFIELD; 

Members

L_UINT uStructSize

Size of this structure in bytes, for versioning. Use the sizeof(TEXTFIELD) operator to calculate this value.

RECT rcBounds

The total bounding rectangle for a field.

RECT rcFilledAreaBounds

The bounding rectangle for a filled part of the field (if the field is empty, the rectangle will be { 0,0,0,0 } and bIsFilled will be false).

RECT rcSpaceBounds[2]

Array of two rectangles for empty spaces in field.

L_BOOL bIsFilled

Boolean flag indicating whether TEXTFIELD is filled. Possible values are:

Value Meaning
TRUE The field is filled (the rcFilledAreaBounds will not be empty).
FALSE The field is not filled.

L_UINT uFieldType

Parameter specifying the type of text field. The following values are possible:

Value Meaning
TEXT_FIELD_TYPE_LINE [0] Line Field.
TEXT_FIELD_TYPE_BOX [1] Box Field.
TEXT_FIELD_TYPE_CELL [2] Cell Field.

Comments

If the text field is empty, then rcFilledAreaBounds is {0,0,0,0}.

If the text field is not filled, then the values of the two rectangles of rcSpaceBounds are {0,0,0,0}.

The first rectangle of rcSpaceBounds is for the empty space, if there is any on the top or the bottom of the filled area. However, if there is no empty space the value of the rectangle is {0,0,0,0}.

The second rectangle of rcSpaceBounds is for the empty space, if there is any on the right side of the filled area. However, if there is no empty space the value of the rectangle is {0,0,0,0}.

Usage

See Also

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.