FormEditor.SetFieldAttribute

Méthode FormEditor.SetFieldAttribute

Définir les attributs du champ.

public bool SetFieldAttribute(string fieldName, PropertyFlag flag)
ParamètreTypeDescription
fieldNameStringNom du champ dont les attributs doivent être définis.
flagPropertyFlagDrapeau (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