TdxPDFForm.GetButtonField(string) Method
Returns a button field by its name on the form.
Declaration
function GetButtonField(const AFullName: string): TdxPDFButtonField;
Parameters
Name | Type | Description |
---|---|---|
AFullName | string | The name of a button field. |
Returns
Type | Description |
---|---|
TdxPDFButtonField | The button field with the specified name (AFullName). |
Exceptions
Type | Description |
---|---|
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 button. |
Remarks
The TryGetButtonField function is a safe alternative to GetButtonField.
See Also