Skip to main content

TdxPDFForm.GetField(string) Method

Returns an interactive field by its name on the form.

Declaration

function GetField(const AFullName: string): TdxPDFCustomField;

Parameters

Name Type Description
AFullName string

The name of an interactive field.

Returns

Type Description
TdxPDFCustomField

The interactive field with the specified name (AFullName). Cast the returned value to the corresponding field class to access all class-specific API members. Call the AField.FieldType function to identify the field’s class.

Exceptions

Type Description
EListError

The “Item not found” exception occurs if the form has no field with the specified name (AFullName).

Remarks

The TryGetField function is a safe alternative to GetField.

See Also