THotPDF.SetFormFieldAdditionalAction Method
方法摘要: THotPDF.SetFormFieldAdditionalAction MethodTHPDFActionBuilder under the field widget /AA dictionary
宣告
procedure SetFormFieldAdditionalAction(const FieldName: AnsiString; Trigger: THPDFFormFieldActionTrigger; Action: THPDFActionBuilder);
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
FieldName | 要在已產生欄位清單中尋找的既有 AcroForm 欄位名稱 |
Trigger | 欄位 additional-action 觸發器:KeyStroke、Format、Validate 或 Calculate |
Action | 以 THPDFActionBuilder 建立的 action chainTHPDFActionBuilder |
使用說明
- 請在建立目標欄位之後、EndDoc 之前呼叫此方法
EndDoc - The method replaces any existing action for the same trigger key and keeps other
/AAentries unchanged - Use
ClearFormFieldAdditionalActionto remove one field trigger entry without disturbing other field actions - Use the named helpers in
THotPDFFormFieldActionConvenienceMethodswhen code should call one method per field or widget trigger - 此方法會替換同一觸發鍵的既有動作,並保持其他 /AA 項目不變
- 要移除單一欄位觸發器項目而不影響其他欄位動作,請使用 ClearFormFieldAdditionalAction
AttachFieldKeyStrokeAction,AttachFieldFormatAction,AttachFieldValidateAction, orAttachFieldCalculateActionfor the JavaScript-only convenience path
相關 API
- THPDFActionBuilderClass
- AcroFormSupport
- THotPDFFormFieldActionConvenienceMethods
- THotPDFAttachFieldKeyStrokeActionMethod