FormEditor.SetFieldAttribute
Méthode FormEditor.SetFieldAttribute
Définir les attributs du champ.
public bool SetFieldAttribute(string fieldName, PropertyFlag flag)
| Paramètre | Type | Description |
|---|---|---|
| fieldName | String | Nom du champ dont les attributs doivent être définis. |
| flag | PropertyFlag | Drapeau (NoExport/ReadOnly/Required) |
Valeur de retour
true si l’attribut a été défini avec succès.
Exemples
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_SetFieldAttribute.pdf");
formEditor.SetFieldAttribute("listboxField", PropertyFlag.ReadOnly);
formEditor.SetFieldAttribute("textField", PropertyFlag.NoExport);
Voir aussi
- enum PropertyFlag
- class FormEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF