Xojo Conferences
MBSOct2019CologneDE
XDCMarch2020NashvilleUS

DynaPDF Manual - Page 377

Previous Page 376   Index   Next Page 378

Function Reference
Page 377 of 770
GetFieldType
Syntax:
SI32 pdfGetFieldType(
const PPDF* IPDF, // Instance pointer
UI32 AField)
// Field handle
typedef enum
{
ftButton
= 0,
ftCheckBox
= 1,
ftRadioBtn
= 2,
ftComboBox
= 3,
ftListBox
= 4,
ftText
= 5,
ftSignature = 6,
ftGroup
= 7
}TFieldType;
The function returns the field type. The parameter AField must be a valid field handle.
Return values:
If the function succeeds the return value is the field type (make a typecast to TFieldType to
determine the field type). If the function fails the return value is a negative error code.
GetFillColor
Syntax:
UI32 pdfGetFillColor(
const PPDF* IPDF) // Instance pointer
The function returns the current color used for fillings. The returned color value is not converted to
the active color space. For example, if the color space will be changed with SetColorSpace(), the color
value is still the same. Colors must be correctly defined in the current color space.
Default value = 0 (black)
 

Previous topic: GetFieldTextAlign, GetFieldTextColor, GetFieldToolTip

Next topic: GetFont (obsolete)