Back to Devexpress

TdxPDFForm.GetTextField(string) Method

vcl-dxpdfform-dot-tdxpdfform-dot-gettextfield-x28-system-dot-string-x29.md

latest1.4 KB
Original Source

TdxPDFForm.GetTextField(string) Method

Returns a text field by its name on the form.

Declaration

delphi
function GetTextField(const AFullName: string): TdxPDFTextField;

Parameters

NameTypeDescription
AFullNamestring

The name of a text field.

|

Returns

TypeDescription
TdxPDFTextField

The text field with the specified name (AFullName).

|

Exceptions

TypeDescription
EListError

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

| | EInvalidCast |

The “Invalid class typecast” exception occurs if the field with the specified name is not a text box.

|

Remarks

The TryGetTextField function is a safe alternative to GetTextField.

See Also

GetField(string)

TdxPDFForm Class

TdxPDFForm Members

dxPDFForm Unit