Back to Devexpress

TdxPDFForm.GetButtonField(string) Method

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

latest1.4 KB
Original Source

TdxPDFForm.GetButtonField(string) Method

Returns a button field by its name on the form.

Declaration

delphi
function GetButtonField(const AFullName: string): TdxPDFButtonField;

Parameters

NameTypeDescription
AFullNamestring

The name of a button field.

|

Returns

TypeDescription
TdxPDFButtonField

The button 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 button.

|

Remarks

The TryGetButtonField function is a safe alternative to GetButtonField.

See Also

GetField(string)

TdxPDFForm Class

TdxPDFForm Members

dxPDFForm Unit