SetFieldAttribute

FormEditor.SetFieldAttribute method

Imposta gli attributi del campo.

public bool SetFieldAttribute(string fieldName, PropertyFlag flag)
ParametroTipoDescrizione
fieldNameStringNome del campo di cui impostare gli attributi.
flagPropertyFlagContrassegna (Nessuna esportazione/Sola lettura/Richiesto)

Valore di ritorno

true se l’attributo è stato impostato correttamente.

Esempi

FormEditor formEditor = new FormEditor("PdfForm.pdf",  "PdfForm_SetFieldAttribute.pdf");
formEditor.SetFieldAttribute("listboxField", PropertyFlag.ReadOnly);
formEditor.SetFieldAttribute("textField", PropertyFlag.NoExport);

Guarda anche